Sha256: c30336d761c0d9f90580fa1edb9d9aa3a21e17347756df573cd11637477d39f9
Contents?: true
Size: 313 Bytes
Versions: 2
Compression:
Stored size: 313 Bytes
Contents
class UsersController::Index < BaseAction def default_view_data super.merge({users: users}) end def perform return view_builder.build(Defaults::ForbiddenView) unless current_ability.can?(:index, User) view_builder.build(Users::IndexView) end private def users User.all end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.1.3 | examples/basic_todo/app/controller_actions/users_controller/index.rb |
aldous-1.1.2 | examples/basic_todo/app/controller_actions/users_controller/index.rb |