Module: ActiveRecord::Poro::ClassMethods

Defined in:
lib/active_record/poro.rb

Instance Method Summary collapse

Instance Method Details

#add_autosave_association_callbacks(reflection) ⇒ Object



24
25
26
# File 'lib/active_record/poro.rb', line 24

def add_autosave_association_callbacks(reflection)
  # NOOP
end

#connectionObject



28
29
30
# File 'lib/active_record/poro.rb', line 28

def connection
  ActiveRecord::Base.connection
end

#generated_feature_methodsObject



16
17
18
19
20
21
22
# File 'lib/active_record/poro.rb', line 16

def generated_feature_methods
  @generated_feature_methods ||= begin
    mod = const_set(:GeneratedFeatureMethods, Module.new)
    include mod
    mod
  end
end

#pluralize_table_namesObject



12
13
14
# File 'lib/active_record/poro.rb', line 12

def pluralize_table_names
  true
end