#73: remove unnecessary code

This commit is contained in:
Vokhmin Alexey V 2013-04-04 17:36:54 +04:00
parent 179615f5b7
commit 588a7d8bab
1 changed files with 0 additions and 3 deletions

View File

@ -5,9 +5,6 @@ module Modules
extend ActiveSupport::Concern extend ActiveSupport::Concern
included do 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 validates :owner, :presence => true
after_create lambda { relations.create :actor_id => owner.id, :actor_type => owner.class.to_s, :role => 'admin' } after_create lambda { relations.create :actor_id => owner.id, :actor_type => owner.class.to_s, :role => 'admin' }
end end