diff db/migrate/097_add_view_wiki_edits_permission.rb @ 1295:622f24f53b42 redmine-2.3

Update to Redmine SVN revision 11972 on 2.3-stable branch
author Chris Cannam
date Fri, 14 Jun 2013 09:02:21 +0100
parents cbb26bc654de
children
line wrap: on
line diff
--- a/db/migrate/097_add_view_wiki_edits_permission.rb	Fri Jun 14 09:01:12 2013 +0100
+++ b/db/migrate/097_add_view_wiki_edits_permission.rb	Fri Jun 14 09:02:21 2013 +0100
@@ -1,12 +1,12 @@
 class AddViewWikiEditsPermission < ActiveRecord::Migration
   def self.up
-    Role.find(:all).each do |r|
+    Role.all.each do |r|
       r.add_permission!(:view_wiki_edits) if r.has_permission?(:view_wiki_pages)
     end
   end
 
   def self.down
-    Role.find(:all).each do |r|
+    Role.all.each do |r|
       r.remove_permission!(:view_wiki_edits)
     end
   end