Module: Potpourri::ActiveRecordExtension::ClassMethods

Defined in:
lib/extensions/active_record/active_record_extension.rb

Instance Method Summary collapse

Instance Method Details

#create_new_records(flag = true) ⇒ Object



53
54
55
# File 'lib/extensions/active_record/active_record_extension.rb', line 53

def create_new_records(flag = true)
  @can_create_new_records = flag
end

#update_existing_records(flag = true) ⇒ Object



57
58
59
# File 'lib/extensions/active_record/active_record_extension.rb', line 57

def update_existing_records(flag = true)
  @can_update_existing_records = flag
end