Sha256: 3250183e382af78fad02726740a3fe8c1687e125aa9c5abc7d23365a067390a1
Contents?: true
Size: 314 Bytes
Versions: 2
Compression:
Stored size: 314 Bytes
Contents
class TodosController::Index < BaseAction def default_view_data super.merge({todos: todos}) end def perform return view_builder.build(Home::ShowRedirect) unless current_user view_builder.build(Todos::IndexView) end private def todos Todo.where(user_id: current_user.id) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aldous-1.1.3 | examples/basic_todo/app/controller_actions/todos_controller/index.rb |
aldous-1.1.2 | examples/basic_todo/app/controller_actions/todos_controller/index.rb |