Mercurial > hg > soundsoftware-site
view .svn/pristine/92/92893dd333df11020fc7563b01582a530fd52085.svn-base @ 1227:eb168c1e9553 live
Show maximum of 10 colleagues
author | Chris Cannam |
---|---|
date | Tue, 12 Mar 2013 15:45:41 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line source
class AddWikiDestroyPagePermission < ActiveRecord::Migration # model removed class Permission < ActiveRecord::Base; end def self.up Permission.create :controller => 'wiki', :action => 'destroy', :description => 'button_delete', :sort => 1740, :is_public => false, :mail_option => 0, :mail_enabled => 0 end def self.down Permission.find_by_controller_and_action('wiki', 'destroy').destroy end end