removing extra help stuff
git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@92 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7master
parent
a487ca60dc
commit
fd28f84531
|
@ -1,21 +0,0 @@
|
|||
class HelpStartPage < ActiveRecord::Migration
|
||||
def self.up
|
||||
redcloths = "
|
||||
h1. Thanks for using BarleySodas
|
||||
|
||||
Please check out these topics for more specialized information.
|
||||
|
||||
* [[Peoples]]
|
||||
* [[Beers]]
|
||||
* [[Breweries]]
|
||||
* [[Discussions]]
|
||||
* [[Pages]]
|
||||
* [[Sessions]]
|
||||
"
|
||||
Page.create :title => 'HomePage', :owner_type => 'Help', :redcloth => redcloths
|
||||
end
|
||||
|
||||
def self.down
|
||||
Page.destroy_all("owner_type = 'Help'")
|
||||
end
|
||||
end
|
|
@ -3,9 +3,8 @@ Permission.destroy_all
|
|||
base_actions = ApplicationController.action_methods
|
||||
# i should probably figure out all of the children of ApplicationController
|
||||
# rather than defining them here.
|
||||
controllers = [ PagesController, HelpController, DiscussionsController,
|
||||
PeoplesController, BeersController, BreweriesController, RolesController,
|
||||
StylesController ]
|
||||
controllers = [ PagesController, DiscussionsController, StylesController,
|
||||
PeoplesController, BeersController, BreweriesController, RolesController ]
|
||||
controllers.each do |c|
|
||||
actions = c.action_methods - base_actions
|
||||
cname = c.controller_name
|
||||
|
@ -18,11 +17,6 @@ Permission.find(:all,
|
|||
next if [ 'new', 'create', 'edit', 'update', 'destroy' ].include?(p.action)
|
||||
r.permissions << p
|
||||
end
|
||||
Permission.find(:all,
|
||||
:conditions => [ 'controller = ?', 'help' ]).each do |p|
|
||||
next if [ 'new', 'create', 'edit', 'update', 'destroy' ].include?(p.action)
|
||||
r.permissions << p
|
||||
end
|
||||
Permission.find(:all,
|
||||
:conditions => [ 'controller = ?', 'styles' ]).each do |p|
|
||||
next if [ 'new', 'create', 'edit', 'update', 'destroy' ].include?(p.action)
|
||||
|
|
Reference in New Issue