1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 20:29:37 +00:00

Fix migration and use Rails 4.2.0 release (#14534).

git-svn-id: http://svn.redmine.org/redmine/trunk@13894 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2015-01-18 09:04:21 +00:00
parent 73762a7d62
commit 5190fef9d6
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,6 @@
source 'https://rubygems.org'
# gem "rails", "4.2.0"
gem "rails", :git => "git://github.com/rails/rails.git", :branch => "4-2-stable"
gem "rails", "4.2.0"
gem "jquery-rails", "~> 3.1.1"
gem "coderay", "~> 1.1.0"
gem "builder", ">= 3.0.4"

View File

@ -1,11 +1,13 @@
class AddViewIssuesPermission < ActiveRecord::Migration
def self.up
Role.reset_column_information
Role.all.each do |r|
r.add_permission!(:view_issues)
end
end
def self.down
Role.reset_column_information
Role.all.each do |r|
r.remove_permission!(:view_issues)
end