Class: Tag

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/generators/governor/templates/models/tag.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject



3
4
5
# File 'lib/generators/governor/templates/models/tag.rb', line 3

def to_param
  "#{id}-#{name.parameterize}"
end