Module: FlexibleFeeds::ActsAsParent::ClassMethods

Defined in:
lib/flexible_feeds/acts_as_parent.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_parent(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/flexible_feeds/acts_as_parent.rb', line 6

def acts_as_parent(options = {})

  cattr_accessor :permitted_children
  cattr_accessor :unpermitted_children
  self.permitted_children = options[:permitted_children]
  self.unpermitted_children = options[:unpermitted_children]

  def is_parental?
    true
  end

  send :include, InstanceMethods
end

#is_parental?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/flexible_feeds/acts_as_parent.rb', line 13

def is_parental?
  true
end