Module: Boxspring::Taggable

Included in:
Attribution, Show, Story, TagCollection
Defined in:
lib/boxspring/taggable.rb

Instance Method Summary collapse

Instance Method Details

#tagsObject



5
6
7
8
9
10
11
12
13
# File 'lib/boxspring/taggable.rb', line 5

def tags
  @_tags ||= begin
    self.attributes.include?( :tags ) ? 
      self.attributes[ :tags ].map do | tag |
        Tag.new( tag ) 
      end :
      nil
  end
end