diff --git a/app/models/environment.rb b/app/models/environment.rb index ae0c048..c169a46 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -65,7 +65,8 @@ class Environment < ActiveRecord::Base has_many :regions - has_many :role_assignments, :as => 'resource' + acts_as_accessible + def superior_intances [self, nil] end diff --git a/app/models/profile.rb b/app/models/profile.rb index 68ba930..58d75f6 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -88,8 +88,6 @@ class Profile < ActiveRecord::Base has_many :domains, :as => :owner belongs_to :environment - has_many :role_assignments, :as => :resource - has_many :articles, :dependent => :destroy belongs_to :home_page, :class_name => Article.name, :foreign_key => 'home_page_id' -- libgit2 0.21.2