Module: DataMapper::Is::Slug::ClassMethods
- Defined in:
- lib/dm-is-slug/is/slug.rb
Instance Attribute Summary collapse
-
#slug_options ⇒ Object
readonly
Returns the value of attribute slug_options.
Instance Method Summary collapse
- #slug_mutable? ⇒ Boolean
- #slug_property ⇒ Object
- #slug_source ⇒ Object
- #slug_source_property ⇒ Object
Instance Attribute Details
#slug_options ⇒ Object (readonly)
Returns the value of attribute slug_options.
102 103 104 |
# File 'lib/dm-is-slug/is/slug.rb', line 102 def @slug_options end |
Instance Method Details
#slug_mutable? ⇒ Boolean
104 105 106 |
# File 'lib/dm-is-slug/is/slug.rb', line 104 def slug_mutable? [:mutable] end |
#slug_property ⇒ Object
116 117 118 |
# File 'lib/dm-is-slug/is/slug.rb', line 116 def slug_property detect_slug_property_by_name(:slug) end |
#slug_source ⇒ Object
108 109 110 |
# File 'lib/dm-is-slug/is/slug.rb', line 108 def slug_source [:source] ? [:source].to_sym : nil end |
#slug_source_property ⇒ Object
112 113 114 |
# File 'lib/dm-is-slug/is/slug.rb', line 112 def slug_source_property detect_slug_property_by_name(slug_source) end |