Module: Effective::CrudController::ClassMethods
- Includes:
- Dsl
- Defined in:
- app/controllers/concerns/effective/crud_controller.rb
Instance Method Summary collapse
-
#effective_resource ⇒ Object
This is used for the buttons/submits/ons It doesn’t really work with the resource_scope correctly but the routes are important here.
Methods included from Dsl
#after_commit, #after_error, #after_save, #before_render, #before_save, #button, #datatable, #on, #page_title, #resource_scope, #submit
Instance Method Details
#effective_resource ⇒ Object
This is used for the buttons/submits/ons It doesn’t really work with the resource_scope correctly but the routes are important here
23 24 25 |
# File 'app/controllers/concerns/effective/crud_controller.rb', line 23 def effective_resource @_effective_resource ||= Effective::Resource.new(controller_path) end |