To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / .svn / pristine / d1 / d1cb23e4b2849d91c4eed462a543696732f1999f.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (262 Bytes)

1
class AddViewIssuesPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.find(:all).each do |r|
4
      r.add_permission!(:view_issues)
5
    end
6
  end
7

    
8
  def self.down
9
    Role.find(:all).each do |r|
10
      r.remove_permission!(:view_issues)
11
    end
12
  end
13
end