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 / 17 / 176d1dc144c5bd598057e3a7c94346dee9aedc08.svn-base @ 1298:4f746d8966dd

History | View | Annotate | Download (248 Bytes)

1 1295:622f24f53b42 Chris
class AddViewIssuesPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.all.each do |r|
4
      r.add_permission!(:view_issues)
5
    end
6
  end
7
8
  def self.down
9
    Role.all.each do |r|
10
      r.remove_permission!(:view_issues)
11
    end
12
  end
13
end