Class: Bogus::ActiveRecordAccessors

Inherits:
Object
  • Object
show all
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

takes

Instance Method Details

#allObject



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