Class: Disclaimer::Segment
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Disclaimer::Segment
- Defined in:
- app/models/disclaimer/segment.rb
Instance Method Summary collapse
Instance Method Details
#title ⇒ Object
16 17 18 |
# File 'app/models/disclaimer/segment.rb', line 16 def title ((!super || super.empty?) && name.present?) ? name.humanize : super end |
#to_param ⇒ Object
12 13 14 |
# File 'app/models/disclaimer/segment.rb', line 12 def to_param name end |