#73: remove unnecessary code
This commit is contained in:
parent
179615f5b7
commit
588a7d8bab
|
@ -5,9 +5,6 @@ module Modules
|
|||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
belongs_to :owner_user, :class_name => 'User', :foreign_key => 'owner_id'
|
||||
belongs_to :owner_group, :class_name => 'Group', :foreign_key => 'owner_id'
|
||||
|
||||
validates :owner, :presence => true
|
||||
after_create lambda { relations.create :actor_id => owner.id, :actor_type => owner.class.to_s, :role => 'admin' }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue