Class: PetsController

Inherits:
InheritedResources::Base show all
Defined in:
lib/vendor/plugins/inherited_resources/test/association_chain_test.rb

Instance Attribute Summary collapse

Attributes inherited from ActionController::Base

#formats

Instance Method Summary collapse

Methods inherited from InheritedResources::Base

inherit_resources

Methods included from InheritedResources::DSL

included

Methods inherited from ActionController::Base

clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user.



12
13
14
# File 'lib/vendor/plugins/inherited_resources/test/association_chain_test.rb', line 12

def current_user
  @current_user
end

Instance Method Details

#editObject



14
15
16
17
# File 'lib/vendor/plugins/inherited_resources/test/association_chain_test.rb', line 14

def edit
  @pet = 'new pet'
  edit!
end