Module: MR::FakeRecord::Persistence::ClassMethods

Defined in:
lib/mr/fake_record/persistence.rb

Instance Method Summary collapse

Instance Method Details

#human_attribute_name(attribute, options = {}) ⇒ Object

this is needed to raise ActiveRecord::RecordInvalid



45
46
47
# File 'lib/mr/fake_record/persistence.rb', line 45

def human_attribute_name(attribute, options = {})
  options[:default] || attribute.to_s.split('.').last
end