Class: Ems::Tag
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ems::Tag
- Extended by:
- FriendlyId
- Defined in:
- app/models/ems/tag.rb
Instance Method Summary collapse
Instance Method Details
#as_json(options = {}) ⇒ Object
22 23 24 |
# File 'app/models/ems/tag.rb', line 22 def as_json(={}) super(.merge(:include => [:articles])) end |
#should_generate_new_friendly_id? ⇒ Boolean
8 9 10 |
# File 'app/models/ems/tag.rb', line 8 def should_generate_new_friendly_id? new_record? end |