Class: RailsEmbedEditor::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- RailsEmbedEditor::ApplicationController
- Defined in:
- app/controllers/rails_embed_editor/application_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#_authorize(*args) ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'app/controllers/rails_embed_editor/application_controller.rb', line 12 def (*args) begin *args true rescue CanCan::AccessDenied => e false end end |
#_authorize!(*args) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/rails_embed_editor/application_controller.rb', line 4 def (*args) if defined? current_user RailsEmbedEditor::Authorization.(current_user, *args) else true end end |