Module: Catche::Controller

Extended by:
ActiveSupport::Concern
Includes:
Actions, Pages
Defined in:
lib/catche/controller.rb,
lib/catche/controller/pages.rb,
lib/catche/controller/actions.rb

Defined Under Namespace

Modules: Actions, ClassMethods, Pages

Instance Method Summary collapse

Methods included from Pages

#cache_page

Methods included from Actions

#_save_fragment

Instance Method Details

#catche_tagsObject



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/catche/controller.rb', line 43

def catche_tags
  return @catche_tags if ! @catche_tags.nil?

  if resource = Catche::ResourceLoader.fetch_one(self, self.class.catche_resource_name)
    tags = Catche::Tag::Collect.resource(resource)
    @catche_tags = tags[:set]
  else
    tags = Catche::Tag::Collect.collection(self, self.class.catche_model)
    @catche_tags = tags[:set]
  end
end