Commit 6298784365e82300299b4ee0d22a009eb8a84bc9
1 parent
0fb9f587
Exists in
master
and in
20 other branches
rails4.1: allow use of roles
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
app/models/environment.rb
| ... | ... | @@ -17,7 +17,10 @@ class Environment < ActiveRecord::Base |
| 17 | 17 | |
| 18 | 18 | has_many :users |
| 19 | 19 | |
| 20 | - self.partial_updates = false | |
| 20 | + # allow roles use | |
| 21 | + def self.dangerous_attribute_method? name | |
| 22 | + false | |
| 23 | + end | |
| 21 | 24 | |
| 22 | 25 | has_many :tasks, :dependent => :destroy, :as => 'target' |
| 23 | 26 | has_many :search_terms, :as => :context | ... | ... |