Sha256: 76692401fa357b54a580c6b8d076d545bdd34777a0f5ef04d4b0064d6b14de0f
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
class BaseAction < ::Aldous::ControllerAction def default_view_data { current_user: current_user, current_ability: current_ability, } end def preconditions [Shared::EnsureUserNotDisabledPrecondition] end def default_error_respondable Defaults::ServerErrorView end def current_user @current_user ||= FindCurrentUserService.perform(session).user end def current_ability @current_ability ||= Ability.new(current_user) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.0.0 | examples/basic_todo/app/controller_actions/base_action.rb |