Module: MR::FakeRecord::Persistence::ClassMethods
- Defined in:
- lib/mr/fake_record/persistence.rb
Instance Method Summary collapse
-
#human_attribute_name(attribute, options = {}) ⇒ Object
this is needed to raise ActiveRecord::RecordInvalid.
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, = {}) [:default] || attribute.to_s.split('.').last end |