Module: Bounga::Acts::NiceUrl::InstanceMethods

Defined in:
lib/acts_as_nice_url.rb

Overview

All the methods available to a record that has had acts_as_nice_url specified.

Instance Method Summary collapse

Instance Method Details

#to_paramObject



44
45
46
47
48
49
50
51
52
# File 'lib/acts_as_nice_url.rb', line 44

def to_param
  s = nice_title.to_s.parameterize
  
  if nice_id
    s = [self.id, s].join('-')
  end
  
  return s
end