Class: Channel

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/channel.rb

Instance Method Summary collapse

Instance Method Details

#decoratorObject

Using decorators



19
20
21
# File 'app/models/channel.rb', line 19

def decorator
  @decorator ||= ChannelDecorator.new(self)
end

#to_paramObject

Links to channels should be their permalink



16
# File 'app/models/channel.rb', line 16

def to_param; self.permalink end