Module: Parameterize::InstanceMethods

Defined in:
lib/parameterize.rb

Instance Method Summary collapse

Instance Method Details

#to_paramObject

Overwrite #to_param to return the parameterize target attribute. Falls back to the original implementation if for some reason the target attribute does not exist



26
27
28
# File 'lib/parameterize.rb', line 26

def to_param
  __send__(parameterize_config[:target]) || super
end