Module: SimpleHashtag::Hashtaggable::ClassMethods
- Defined in:
- lib/simple_hashtag/hashtaggable.rb
Instance Attribute Summary collapse
-
#hashtaggable_attribute_name ⇒ Object
Returns the value of attribute hashtaggable_attribute_name.
Instance Method Summary collapse
Instance Attribute Details
#hashtaggable_attribute_name ⇒ Object
Returns the value of attribute hashtaggable_attribute_name.
38 39 40 |
# File 'lib/simple_hashtag/hashtaggable.rb', line 38 def hashtaggable_attribute_name @hashtaggable_attribute_name end |
Instance Method Details
#hashtaggable_attribute(name = nil) ⇒ Object
40 41 42 |
# File 'lib/simple_hashtag/hashtaggable.rb', line 40 def hashtaggable_attribute(name=nil) self.hashtaggable_attribute_name ||= name || :body end |