class Concentration
NOTE: Concentration
routes need to be embedded within their particular Academic program
because slugs are only uniq within their associated program.
Public Instance Methods
to_s()
click to toggle source
# File lib/buweb/concentration.rb, line 29 def to_s title end
Private Instance Methods
set_slug()
click to toggle source
# File lib/buweb/concentration.rb, line 34 def set_slug if title? && !slug? self.slug = title.parameterize elsif slug? self.slug = slug.parameterize end end