class Ecrire::Configuration
Public Instance Methods
database_configuration()
click to toggle source
# File lib/ecrire/configuration.rb, line 32 def database_configuration { Rails.env => Ecrire::Application.secrets.database } end
paths()
click to toggle source
Return paths based off Rails default plus some customization.
These paths are Ecrire's, not the users's theme.
For the user's paths, look at Ecrire::Theme::Engine.paths
Calls superclass method
# File lib/ecrire/configuration.rb, line 19 def paths @paths ||= begin paths = super paths.add 'config/secrets', with: Ecrire::Theme.path + 'secrets.yml' paths.add 'config/database', with: Ecrire::Theme.path + 'secrets.yml' paths.add 'config/routes.rb', with: 'routes.rb' paths.add 'config/locales', with: 'locales', glob: "**/*.{rb,yml}" paths.add 'lib/tasks', with: 'tasks', glob: '**/*.rake' paths end end
secret_key_base()
click to toggle source
# File lib/ecrire/configuration.rb, line 4 def secret_key_base SecureRandom.hex(16) end
secret_token()
click to toggle source
# File lib/ecrire/configuration.rb, line 8 def secret_token SecureRandom.hex(16) end