Method: Auth::Concerns::Shopping::ProductControllerConcern#create
- Defined in:
- app/controllers/auth/concerns/shopping/product_controller_concern.rb
#create ⇒ Object
19 20 21 22 23 24 25 26 |
# File 'app/controllers/auth/concerns/shopping/product_controller_concern.rb', line 19 def create check_for_create(@auth_shopping_product) @auth_shopping_product = add_owner_and_signed_in_resource(@auth_shopping_product,{:owner_is_current_resource => true}) @auth_shopping_product.save respond_with @auth_shopping_product end |