Class: MassInsert::Executer
- Inherits:
-
Object
- Object
- MassInsert::Executer
- Defined in:
- lib/mass_insert/executer.rb
Instance Method Summary collapse
Instance Method Details
#execute(query) ⇒ Object
3 4 5 6 7 |
# File 'lib/mass_insert/executer.rb', line 3 def execute(query) ActiveRecord::Base.transaction do ActiveRecord::Base.connection.execute(query) end end |