Class: Channel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Channel
- Defined in:
- app/models/channel.rb
Instance Method Summary collapse
-
#decorator ⇒ Object
Using decorators.
-
#to_param ⇒ Object
Links to channels should be their permalink.
Instance Method Details
#decorator ⇒ Object
Using decorators
19 20 21 |
# File 'app/models/channel.rb', line 19 def decorator @decorator ||= ChannelDecorator.new(self) end |
#to_param ⇒ Object
Links to channels should be their permalink
16 |
# File 'app/models/channel.rb', line 16 def to_param; self.permalink end |