Module: Traitor::Helpers::ActiveRecord

Defined in:
lib/traitor/helpers/active_record.rb

Instance Method Summary collapse

Instance Method Details

#create_without_callbacksObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/traitor/helpers/active_record.rb', line 10

def create_without_callbacks
  case self.class.connection.class.name
  when 'ActiveRecord::ConnectionAdapters::PostgreSQLAdapter'
    create_without_callbacks_pg
  when 'ActiveRecord::ConnectionAdapters::SQLite3Adapter'
    create_without_callbacks_sqlite
  else
    create_without_callbacks_default
  end
end