Module: SimplePages::Models::PageOwner

Extended by:
ActiveSupport::Concern
Defined in:
lib/simple_pages/models/page_owner.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#owner=(attrs) ⇒ Object



15
16
17
18
19
# File 'lib/simple_pages/models/page_owner.rb', line 15

def owner=(attrs)
  owner_attrs = attrs.split(',')
  self.author_type = owner_attrs.first
  self.author_id = owner_attrs.last
end