Class: Blogelator::Author

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/blogelator/author.rb

Instance Method Summary collapse

Instance Method Details

#to_paramString

Uses the slug as the :id parameter in URLs

Returns:

  • (String)


39
40
41
# File 'app/models/blogelator/author.rb', line 39

def to_param
  slug
end