mysociety/alaveteli

View on GitHub
config/initializers/friendly_id.rb

Summary

Maintainability
A
0 mins
Test Coverage
# FriendlyId Global Configuration
#
# Use this to set up shared configuration options for your entire application.
# Any of the configuration options shown here can also be applied to single
# models by passing arguments to the `friendly_id` class method or defining
# methods in your model.
#
# To learn more, check out the guide:
#
# http://norman.github.io/friendly_id/file.Guide.html

FriendlyId.defaults do |config|
  config.use :reserved

  config.reserved_words = %w[new edit index session login logout users admin
                             stylesheets assets javascripts images]
end