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 / 35 / 358efe99a3fb53178835eb3b5414a8ad980d694b.svn-base @ 1297:0a574315af3e

History | View | Annotate | Download (328 Bytes)

1
class AddCommitAccessPermission < ActiveRecord::Migration
2
  def self.up
3
    Role.find(:all).select { |r| not r.builtin? }.each do |r|
4
      r.add_permission!(:commit_access)
5
    end
6
  end
7

    
8
  def self.down
9
    Role.find(:all).select { |r| not r.builtin? }.each do |r|
10
      r.remove_permission!(:commit_access)
11
    end
12
  end
13
end