Skip to content

Commit

Permalink
auto-actions-story-status-controller
Browse files Browse the repository at this point in the history
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 Aug 12, 2013
1 parent 48a8223 commit 2661a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/story_statuses_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.