Class: Comfy::Cms::Block

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/comfy/cms/block.rb

Instance Method Summary collapse

Instance Method Details

#tagObject

– Instance Methods —————————————————– Tag object that is using this block



21
22
23
# File 'app/models/comfy/cms/block.rb', line 21

def tag
  @tag ||= blockable.tags(:reload).detect{|t| t.is_cms_block? && t.identifier == identifier}
end