Module: NaturalResource::Controller
- Extended by:
- ActiveSupport::Concern
- Includes:
- Pundit
- Defined in:
- lib/natural_resource/controller.rb
Instance Method Summary collapse
Instance Method Details
#handle_invalid_create_or_update ⇒ Object
92 93 94 95 96 97 98 |
# File 'lib/natural_resource/controller.rb', line 92 def handle_invalid_create_or_update case action_name when 'create' then render :new when 'update' then render :edit else raise NotImplementedError end end |