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