Mercurial > hg > soundsoftware-site
annotate .svn/pristine/72/7274c695571e958f3ca2e7a9525c8d48e60fc42c.svn-base @ 1155:a34a06ba1e33 redmine-2.2-integration
Provide a JS callback which should (?) be rendered by toggle_active ajax call
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Tue, 15 Jan 2013 15:48:21 +0000 |
parents | cbb26bc654de |
children |
rev | line source |
---|---|
Chris@909 | 1 class AddRepositoriesChangesPermission < ActiveRecord::Migration |
Chris@909 | 2 # model removed |
Chris@909 | 3 class Permission < ActiveRecord::Base; end |
Chris@909 | 4 |
Chris@909 | 5 def self.up |
Chris@909 | 6 Permission.create :controller => 'repositories', :action => 'changes', :description => 'label_change_plural', :sort => 1475, :is_public => true, :mail_option => 0, :mail_enabled => 0 |
Chris@909 | 7 end |
Chris@909 | 8 |
Chris@909 | 9 def self.down |
Chris@909 | 10 Permission.find_by_controller_and_action('repositories', 'changes').destroy |
Chris@909 | 11 end |
Chris@909 | 12 end |