Module: DataMapper::Is::InstanceMethods
- Defined in:
- lib/dm-is-sluggable/is/instance_methods.rb
Instance Method Summary collapse
- #slug_max_length ⇒ Object
- #slug_permanent? ⇒ Boolean
- #slug_property ⇒ Object
- #slug_property_name ⇒ Object
- #slug_source ⇒ Object
- #slug_value ⇒ Object (also: #to_param)
Instance Method Details
#slug_max_length ⇒ Object
23 24 25 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 23 def slug_max_length self.class.slug_max_length end |
#slug_permanent? ⇒ Boolean
19 20 21 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 19 def slug_permanent? self.class.slug_permanent? end |
#slug_property ⇒ Object
7 8 9 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 7 def slug_property self.class.slug_property end |
#slug_property_name ⇒ Object
11 12 13 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 11 def slug_property_name self.class.slug_property_name end |
#slug_source ⇒ Object
15 16 17 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 15 def slug_source self.class.slug_source end |
#slug_value ⇒ Object Also known as: to_param
27 28 29 |
# File 'lib/dm-is-sluggable/is/instance_methods.rb', line 27 def slug_value send slug_property_name end |