replace tabs to spaces at db/migrate/099_add_delete_wiki_pages_attachments_permission.rb (#9510)

Contributed by Igor Zubkov.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7756 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-09 08:11:13 +00:00
parent 4b38902ef7
commit 67ac04e49a
1 changed files with 6 additions and 6 deletions

View File

@ -1,13 +1,13 @@
class AddDeleteWikiPagesAttachmentsPermission < ActiveRecord::Migration
def self.up
Role.find(:all).each do |r|
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
end
Role.find(:all).each do |r|
r.add_permission!(:delete_wiki_pages_attachments) if r.has_permission?(:edit_wiki_pages)
end
end
def self.down
Role.find(:all).each do |r|
r.remove_permission!(:delete_wiki_pages_attachments)
end
Role.find(:all).each do |r|
r.remove_permission!(:delete_wiki_pages_attachments)
end
end
end