annotate .svn/pristine/f1/f1722f2f02a0aad8f0c1c4806750cf6535456366.svn-base @ 1524:82fac3dcf466 redmine-2.5-integration

Fix failure to interpret Javascript when autocompleting members for project
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Thu, 11 Sep 2014 10:24:38 +0100
parents cbb26bc654de
children
rev   line source
Chris@909 1 class AddBoardsPermissions < ActiveRecord::Migration
Chris@909 2 # model removed
Chris@909 3 class Permission < ActiveRecord::Base; end
Chris@909 4
Chris@909 5 def self.up
Chris@909 6 Permission.create :controller => "boards", :action => "new", :description => "button_add", :sort => 2000, :is_public => false, :mail_option => 0, :mail_enabled => 0
Chris@909 7 Permission.create :controller => "boards", :action => "edit", :description => "button_edit", :sort => 2005, :is_public => false, :mail_option => 0, :mail_enabled => 0
Chris@909 8 Permission.create :controller => "boards", :action => "destroy", :description => "button_delete", :sort => 2010, :is_public => false, :mail_option => 0, :mail_enabled => 0
Chris@909 9 end
Chris@909 10
Chris@909 11 def self.down
Chris@909 12 Permission.find_by_controller_and_action("boards", "new").destroy
Chris@909 13 Permission.find_by_controller_and_action("boards", "edit").destroy
Chris@909 14 Permission.find_by_controller_and_action("boards", "destroy").destroy
Chris@909 15 end
Chris@909 16 end