Class: PageModule

Inherits:
ActiveRecord::Base
  • Object
show all
Extended by:
FriendlyId
Defined in:
app/models/page_module.rb

Instance Attribute Summary collapse

Instance Attribute Details

#collection_idObject

Returns the value of attribute collection_id.



27
28
29
# File 'app/models/page_module.rb', line 27

def collection_id
  @collection_id
end

#pluginObject



36
37
38
39
40
41
42
43
44
# File 'app/models/page_module.rb', line 36

def plugin
  return @plugin if @plugin.present?
  
  if slug_stub.present? && Setting['home_page.general.plugins'].include?("home_page_#{slug_stub}") || slug_stub == 'home'
    slug_stub      
  else
    nil
  end
end