Module: Brightcontent::BaseControllerExt::DefaultActions
- Included in:
- Brightcontent::BaseController
- Defined in:
- lib/brightcontent/base_controller_ext/default_actions.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
12 13 14 |
# File 'lib/brightcontent/base_controller_ext/default_actions.rb', line 12 def create create! { resource_redirect_path } end |
#destroy ⇒ Object
20 21 22 |
# File 'lib/brightcontent/base_controller_ext/default_actions.rb', line 20 def destroy destroy! { resource_index_path } end |
#show ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/brightcontent/base_controller_ext/default_actions.rb', line 4 def show if request.format == :html redirect_to action: :edit else show! end end |
#update ⇒ Object
16 17 18 |
# File 'lib/brightcontent/base_controller_ext/default_actions.rb', line 16 def update update! { resource_redirect_path } end |