Class: AnimateIt::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- AnimateIt::ApplicationController
- Defined in:
- app/controllers/animate_it/application_controller.rb
Direct Known Subclasses
AudioController, FramesController, PropsController, RendersController, StudioController
Constant Summary collapse
- NullPolicy =
Host partials reach for Devise's
current_userand Pundit'spolicy(...)helpers. The engine has neither, so provide permissive null-object versions for hero rendering. Hero canvases are always read-only; the action buttons they incidentally render evaluate every permission to false and become no-ops. Class.new do def method_missing(name, *_args) name.to_s.end_with?("?") ? false : self end def respond_to_missing?(_name, _include_private = false) true end end