Class: PageModule
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- PageModule
- Extended by:
- FriendlyId
- Defined in:
- app/models/page_module.rb
Instance Attribute Summary collapse
-
#collection_id ⇒ Object
Returns the value of attribute collection_id.
- #plugin ⇒ Object
Instance Attribute Details
#collection_id ⇒ Object
Returns the value of attribute collection_id.
27 28 29 |
# File 'app/models/page_module.rb', line 27 def collection_id @collection_id end |
#plugin ⇒ Object
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 |