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 Feb 19, 2010
1 parent e692ece commit 8c0e3ab
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 8c0e3ab

Please sign in to comment.