Class: Person
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Person
- Defined in:
- lib/vendor/plugins/rspec-rails/spec/resources/models/person.rb
Instance Method Summary collapse
Methods included from Spec::Rails::Extensions::ActiveRecord::ClassMethods
Methods included from Resourceful::Serialize::Model
Methods included from Spec::Rails::Extensions::ActiveRecord::InstanceMethods
Instance Method Details
#add_animal(animal) ⇒ Object
12 13 14 15 16 |
# File 'lib/vendor/plugins/rspec-rails/spec/resources/models/person.rb', line 12 def add_animal animal animal.person = self animals << animal animal.save end |