You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cartodb/app/models/concerns/active_record_compatibility.rb

24 lines
375 B

# Contains methods present in ActiveRecord models but not in Sequel,
# providing a light compatibility layer
module ActiveRecordCompatibility
extend ActiveSupport::Concern
def new_record?
new?
end
def save!
save(raise_on_failure: true)
end
def attributes
values.with_indifferent_access
end
def model_name
self.class.model_name
end
end