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