Class: Forum

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

Instance Method Summary collapse

Instance Method Details

#to_paramObject



18
19
20
# File 'app/models/forum.rb', line 18

def to_param
  id.to_s << "-" << (name ? name.parameterize : '' )
end