Class: Bogus::ActiveRecordAccessors
- Inherits:
-
Object
- Object
- Bogus::ActiveRecordAccessors
- Extended by:
- Takes, Forwardable
- Defined in:
- lib/bogus/fakes/active_record_accessors.rb
Defined Under Namespace
Classes: Attribute
Instance Method Summary collapse
Methods included from Takes
Instance Method Details
#all ⇒ Object
12 13 14 15 |
# File 'lib/bogus/fakes/active_record_accessors.rb', line 12 def all return [] unless klass < ActiveRecord::Base return missing_attributes end |
#get(name) ⇒ Object
17 18 19 |
# File 'lib/bogus/fakes/active_record_accessors.rb', line 17 def get(name) Attribute.new(name) end |