I've done it two ways:
1) Model.connection.execute(sql)
and
2) ActiveRecord::Base.connection.execute(sql)
Not sure which way is considered more proper, though.
Peace, Phillip
I've done it two ways:
1) Model.connection.execute(sql)
and
2) ActiveRecord::Base.connection.execute(sql)
Not sure which way is considered more proper, though.
Peace, Phillip