Class: PetsController
- Inherits:
-
InheritedResources::Base
- Object
- ActionController::Base
- ApplicationController
- InheritedResources::Base
- PetsController
- Defined in:
- lib/vendor/plugins/inherited_resources/test/association_chain_test.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
Attributes inherited from ActionController::Base
Instance Method Summary collapse
Methods inherited from InheritedResources::Base
Methods included from InheritedResources::DSL
Methods inherited from ActionController::Base
clear_respond_to, inherit_resources, respond_to, #respond_to, #respond_with, #responder
Instance Attribute Details
#current_user ⇒ Object
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
#edit ⇒ Object
14 15 16 17 |
# File 'lib/vendor/plugins/inherited_resources/test/association_chain_test.rb', line 14 def edit @pet = 'new pet' edit! end |