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 committed Nov 14, 2011
1 parent 7fd1e13 commit a5b239d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/story_statuses_controller.rb
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 a5b239d

Please sign in to comment.