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
85 86 87 88 89 90 91 |
# File 'lib/natural_resource/controller.rb', line 85 def handle_invalid_create_or_update case action_name when 'create' then render :new when 'update' then render :edit else raise NotImplementedError end end |