Module: Revelry::Content::WithRevelryContent
- Extended by:
- ActiveSupport::Concern
- Included in:
- ContentsController, PagesController
- Defined in:
- lib/revelry/content/content_concern.rb
Instance Method Summary collapse
Instance Method Details
#content_scope ⇒ Object
9 10 11 |
# File 'lib/revelry/content/content_concern.rb', line 9 def content_scope Revelry::Content::Content.excluding_prefix('pages') end |
#gather_contents ⇒ Object
13 14 15 16 |
# File 'lib/revelry/content/content_concern.rb', line 13 def gather_contents @revelry_content_contents = Revelry::Content::Content.as_lookup_table(content_scope) end |