Permalink
Browse files

auto-actions-story-status-controller

Whenever you create a new model + controller with Hobo, get into the habit of thinking about permissions and controller actions. In this case, we probably want only admins to be able to manage the permissions. As for actions, we probably only want the write actions, and the index page:

SHOW_PATCH
  • Loading branch information...
bryanlarsen authored and iox committed Jun 3, 2013
1 parent 48a8223 commit 2661a8b6c4dfaa9241375ee7c35b61394160b2a6
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/story_statuses_controller.rb
@@ -2,6 +2,6 @@ class StoryStatusesController < ApplicationController
hobo_model_controller
auto_actions :all
auto_actions :write_only, :new, :index
end

0 comments on commit 2661a8b

Please sign in to comment.