Class: Disclaimer::Segment

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/disclaimer/segment.rb

Instance Method Summary collapse

Instance Method Details

#titleObject



16
17
18
# File 'app/models/disclaimer/segment.rb', line 16

def title
  ((!super || super.empty?) && name.present?) ? name.humanize : super
end

#to_paramObject



12
13
14
# File 'app/models/disclaimer/segment.rb', line 12

def to_param
  name
end