omniauth-auth0 1.4.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +6 -1
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +20 -0
  5. data/.travis.yml +4 -1
  6. data/CHANGELOG.md +18 -1
  7. data/Gemfile +25 -3
  8. data/Guardfile +5 -0
  9. data/README.md +42 -26
  10. data/Rakefile +24 -4
  11. data/examples/sinatra/app.rb +14 -0
  12. data/examples/sinatra/config.ru +3 -0
  13. data/lib/omniauth-auth0.rb +2 -2
  14. data/lib/omniauth-auth0/version.rb +1 -1
  15. data/lib/omniauth/strategies/auth0.rb +74 -64
  16. data/omniauth-auth0.gemspec +12 -17
  17. data/spec/omniauth/strategies/auth0_spec.rb +240 -128
  18. data/spec/spec_helper.rb +46 -9
  19. metadata +23 -190
  20. data/examples/ruby-on-rails-webapp/.gitignore +0 -17
  21. data/examples/ruby-on-rails-webapp/Gemfile +0 -51
  22. data/examples/ruby-on-rails-webapp/README.md +0 -22
  23. data/examples/ruby-on-rails-webapp/README.rdoc +0 -28
  24. data/examples/ruby-on-rails-webapp/Rakefile +0 -6
  25. data/examples/ruby-on-rails-webapp/app/assets/images/.keep +0 -0
  26. data/examples/ruby-on-rails-webapp/app/assets/javascripts/application.js +0 -13
  27. data/examples/ruby-on-rails-webapp/app/assets/javascripts/home.js.erb +0 -10
  28. data/examples/ruby-on-rails-webapp/app/assets/stylesheets/application.css +0 -114
  29. data/examples/ruby-on-rails-webapp/app/controllers/application_controller.rb +0 -5
  30. data/examples/ruby-on-rails-webapp/app/controllers/auth0_controller.rb +0 -14
  31. data/examples/ruby-on-rails-webapp/app/controllers/concerns/.keep +0 -0
  32. data/examples/ruby-on-rails-webapp/app/controllers/dashboard_controller.rb +0 -5
  33. data/examples/ruby-on-rails-webapp/app/controllers/home_controller.rb +0 -5
  34. data/examples/ruby-on-rails-webapp/app/controllers/secured_controller.rb +0 -13
  35. data/examples/ruby-on-rails-webapp/app/helpers/application_helper.rb +0 -2
  36. data/examples/ruby-on-rails-webapp/app/helpers/callback_helper.rb +0 -2
  37. data/examples/ruby-on-rails-webapp/app/helpers/dashboard_helper.rb +0 -2
  38. data/examples/ruby-on-rails-webapp/app/helpers/home_helper.rb +0 -2
  39. data/examples/ruby-on-rails-webapp/app/mailers/.keep +0 -0
  40. data/examples/ruby-on-rails-webapp/app/models/.keep +0 -0
  41. data/examples/ruby-on-rails-webapp/app/models/concerns/.keep +0 -0
  42. data/examples/ruby-on-rails-webapp/app/views/auth0/failure.html.erb +0 -4
  43. data/examples/ruby-on-rails-webapp/app/views/dashboard/show.html.erb +0 -12
  44. data/examples/ruby-on-rails-webapp/app/views/home/show.html.erb +0 -14
  45. data/examples/ruby-on-rails-webapp/app/views/layouts/application.html.erb +0 -22
  46. data/examples/ruby-on-rails-webapp/bin/bundle +0 -3
  47. data/examples/ruby-on-rails-webapp/bin/rails +0 -4
  48. data/examples/ruby-on-rails-webapp/bin/rake +0 -4
  49. data/examples/ruby-on-rails-webapp/bin/spring +0 -18
  50. data/examples/ruby-on-rails-webapp/config.ru +0 -4
  51. data/examples/ruby-on-rails-webapp/config/application.rb +0 -32
  52. data/examples/ruby-on-rails-webapp/config/boot.rb +0 -4
  53. data/examples/ruby-on-rails-webapp/config/database.yml +0 -20
  54. data/examples/ruby-on-rails-webapp/config/environment.rb +0 -5
  55. data/examples/ruby-on-rails-webapp/config/environments/development.rb +0 -39
  56. data/examples/ruby-on-rails-webapp/config/environments/production.rb +0 -85
  57. data/examples/ruby-on-rails-webapp/config/environments/test.rb +0 -39
  58. data/examples/ruby-on-rails-webapp/config/initializers/01_dotenv.rb +0 -4
  59. data/examples/ruby-on-rails-webapp/config/initializers/auth0.rb +0 -9
  60. data/examples/ruby-on-rails-webapp/config/initializers/backtrace_silencers.rb +0 -7
  61. data/examples/ruby-on-rails-webapp/config/initializers/cookies_serializer.rb +0 -3
  62. data/examples/ruby-on-rails-webapp/config/initializers/filter_parameter_logging.rb +0 -4
  63. data/examples/ruby-on-rails-webapp/config/initializers/fix_ssl.rb +0 -15
  64. data/examples/ruby-on-rails-webapp/config/initializers/inflections.rb +0 -16
  65. data/examples/ruby-on-rails-webapp/config/initializers/mime_types.rb +0 -4
  66. data/examples/ruby-on-rails-webapp/config/initializers/session_store.rb +0 -3
  67. data/examples/ruby-on-rails-webapp/config/initializers/wrap_parameters.rb +0 -14
  68. data/examples/ruby-on-rails-webapp/config/locales/en.yml +0 -23
  69. data/examples/ruby-on-rails-webapp/config/routes.rb +0 -66
  70. data/examples/ruby-on-rails-webapp/config/secrets.yml +0 -35
  71. data/examples/ruby-on-rails-webapp/db/seeds.rb +0 -7
  72. data/examples/ruby-on-rails-webapp/lib/assets/.keep +0 -0
  73. data/examples/ruby-on-rails-webapp/lib/ca-bundle.crt +0 -3893
  74. data/examples/ruby-on-rails-webapp/lib/tasks/.keep +0 -0
  75. data/examples/ruby-on-rails-webapp/log/.keep +0 -0
  76. data/examples/ruby-on-rails-webapp/public/404.html +0 -67
  77. data/examples/ruby-on-rails-webapp/public/422.html +0 -67
  78. data/examples/ruby-on-rails-webapp/public/500.html +0 -66
  79. data/examples/ruby-on-rails-webapp/public/favicon.ico +0 -0
  80. data/examples/ruby-on-rails-webapp/public/robots.txt +0 -5
  81. data/examples/ruby-on-rails-webapp/test/controllers/.keep +0 -0
  82. data/examples/ruby-on-rails-webapp/test/controllers/callback_controller_test.rb +0 -14
  83. data/examples/ruby-on-rails-webapp/test/controllers/dashboard_controller_test.rb +0 -9
  84. data/examples/ruby-on-rails-webapp/test/controllers/home_controller_test.rb +0 -9
  85. data/examples/ruby-on-rails-webapp/test/fixtures/.keep +0 -0
  86. data/examples/ruby-on-rails-webapp/test/helpers/.keep +0 -0
  87. data/examples/ruby-on-rails-webapp/test/helpers/callback_helper_test.rb +0 -4
  88. data/examples/ruby-on-rails-webapp/test/helpers/dashboard_helper_test.rb +0 -4
  89. data/examples/ruby-on-rails-webapp/test/helpers/home_helper_test.rb +0 -4
  90. data/examples/ruby-on-rails-webapp/test/integration/.keep +0 -0
  91. data/examples/ruby-on-rails-webapp/test/mailers/.keep +0 -0
  92. data/examples/ruby-on-rails-webapp/test/models/.keep +0 -0
  93. data/examples/ruby-on-rails-webapp/test/test_helper.rb +0 -13
  94. data/examples/ruby-on-rails-webapp/vendor/assets/javascripts/.keep +0 -0
  95. data/examples/ruby-on-rails-webapp/vendor/assets/stylesheets/.keep +0 -0
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require File.expand_path('../config/application', __FILE__)
5
-
6
- Rails.application.load_tasks
@@ -1,13 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file.
9
- //
10
- // Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require_tree .
@@ -1,10 +0,0 @@
1
- var lock = new Auth0Lock('<%= Rails.application.secrets.auth0_client_id %>', '<%= Rails.application.secrets.auth0_domain %>');
2
- function signin() {
3
- lock.show({
4
- callbackURL: 'http://localhost:3000/auth/auth0/callback', // use this in production '<%= Rails.application.secrets.auth0_callback_url %>'
5
- responseType: 'code',
6
- authParams: {
7
- scope: 'openid name email picture'
8
- }
9
- });
10
- }
@@ -1,114 +0,0 @@
1
- /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any styles
10
- * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
- * file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */
16
-
17
- body {
18
- font-family: "proxima-nova", sans-serif;
19
- text-align: center;
20
- font-size: 300%;
21
- font-weight: 100;
22
- }
23
- input[type=checkbox],
24
- input[type=radio] {
25
- position: absolute;
26
- opacity: 0;
27
- }
28
- input[type=checkbox] + label,
29
- input[type=radio] + label {
30
- display: inline-block;
31
- }
32
- input[type=checkbox] + label:before,
33
- input[type=radio] + label:before {
34
- content: "";
35
- display: inline-block;
36
- vertical-align: -0.2em;
37
- width: 1em;
38
- height: 1em;
39
- border: 0.15em solid #0074d9;
40
- border-radius: 0.2em;
41
- margin-right: 0.3em;
42
- background-color: white;
43
- }
44
- input[type=radio] + label:before {
45
- border-radius: 50%;
46
- }
47
- input[type=radio]:checked + label:before,
48
- input[type=checkbox]:checked + label:before {
49
- background-color: #0074d9;
50
- box-shadow: inset 0 0 0 0.15em white;
51
- }
52
- input[type=radio]:focus + label:before,
53
- input[type=checkbox]:focus + label:before {
54
- outline: 0;
55
- }
56
- .btn {
57
- font-size: 140%;
58
- text-transform: uppercase;
59
- letter-spacing: 1px;
60
- border: 0;
61
- background-color: #16214D;
62
- color: white;
63
- }
64
- .btn:hover {
65
- background-color: #44C7F4;
66
- }
67
- .btn:focus {
68
- outline: none !important;
69
- }
70
- .btn.btn-lg {
71
- padding: 20px 30px;
72
- }
73
- .btn:disabled {
74
- background-color: #333;
75
- color: #666;
76
- }
77
- h1,
78
- h2,
79
- h3 {
80
- font-weight: 100;
81
- }
82
- #logo img {
83
- width: 300px;
84
- margin-bottom: 60px;
85
- }
86
- .home-description {
87
- font-weight: 100;
88
- margin: 100px 0;
89
- }
90
- h2 {
91
- margin-top: 30px;
92
- margin-bottom: 40px;
93
- font-size: 200%;
94
- }
95
- label {
96
- font-size: 100%;
97
- font-weight: 300;
98
- }
99
- .btn-next {
100
- margin-top: 30px;
101
- }
102
- .answer {
103
- width: 70%;
104
- margin: auto;
105
- text-align: left;
106
- padding-left: 10%;
107
- margin-bottom: 20px;
108
- }
109
- .login-page .login-box {
110
- padding: 100px 0;
111
- }
112
- pre {
113
- text-align: left;
114
- }
@@ -1,5 +0,0 @@
1
- class ApplicationController < ActionController::Base
2
- # Prevent CSRF attacks by raising an exception.
3
- # For APIs, you may want to use :null_session instead.
4
- protect_from_forgery with: :exception
5
- end
@@ -1,14 +0,0 @@
1
- class Auth0Controller < ApplicationController
2
- def callback
3
- # example request.env['omniauth.auth'] in https://github.com/auth0/omniauth-auth0#auth-hash
4
- # id_token = session[:userinfo]['credentials']['id_token']
5
- # store the user profile in session and redirect to root
6
- session[:userinfo] = request.env['omniauth.auth']
7
-
8
- redirect_to '/dashboard'
9
- end
10
-
11
- def failure
12
- @error_msg = request.params['message']
13
- end
14
- end
@@ -1,5 +0,0 @@
1
- class DashboardController < SecuredController
2
- def show
3
- @user = session[:userinfo]
4
- end
5
- end
@@ -1,5 +0,0 @@
1
- class HomeController < ApplicationController
2
- def show
3
-
4
- end
5
- end
@@ -1,13 +0,0 @@
1
- class SecuredController < ApplicationController
2
-
3
- before_action :logged_in_using_omniauth?
4
-
5
- private
6
-
7
- def logged_in_using_omniauth?
8
- unless session[:userinfo].present?
9
- redirect_to '/'
10
- end
11
- end
12
-
13
- end
@@ -1,2 +0,0 @@
1
- module ApplicationHelper
2
- end
@@ -1,2 +0,0 @@
1
- module CallbackHelper
2
- end
@@ -1,2 +0,0 @@
1
- module DashboardHelper
2
- end
@@ -1,2 +0,0 @@
1
- module HomeHelper
2
- end
@@ -1,4 +0,0 @@
1
- <div class="home">
2
- <h2>Error <%= @error_msg %></h2>
3
- <p><%= @omniauth_error %></p>
4
- </div>
@@ -1,12 +0,0 @@
1
- <div class="home">
2
- <div class="container">
3
- <div class="login-page clearfix">
4
- <div class="logged-in-box auth0-box logged-in">
5
- <h1 id="logo"><img src="//cdn.auth0.com/samples/auth0_logo_final_blue_RGB.png" /></h1>
6
- <img class="avatar" src="<%= @user[:info][:image] %>"/>
7
- <h2>Welcome <%= @user[:info][:name] %></h2>
8
- <pre><%= JSON.pretty_generate(@user[:info]) %></pre>
9
- </div>
10
- </div>
11
- </div>
12
- </div>
@@ -1,14 +0,0 @@
1
- <div class="home">
2
- <div class="container">
3
- <div class="login-page clearfix">
4
- <div class="login-box auth0-box before">
5
- <img src="https://i.cloudup.com/StzWWrY34s.png" />
6
- <h3>Auth0 Example</h3>
7
- <p>Zero friction identity infrastructure, built for developers</p>
8
- <a class="btn btn-primary btn-lg btn-login btn-block" onclick="signin()">SignIn</a>
9
- </div>
10
- </div>
11
- </div>
12
- </div>
13
-
14
-
@@ -1,22 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>RubyOnRailsWebapp</title>
5
- <meta name="viewport" content="width=device-width, initial-scale=1">
6
- <%= yield :cdn_code %>
7
- <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css' %>
8
- <%= stylesheet_link_tag '//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css' %>
9
- <%= javascript_include_tag '//cdn.auth0.com/js/lock-9.0.min.js' %>
10
- <%= javascript_include_tag '//use.typekit.net/iws6ohy.js' %>
11
- <script type="text/javascript">try{Typekit.load();}catch(e){}</script>
12
-
13
- <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
14
- <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
15
- <%= csrf_meta_tags %>
16
- </head>
17
- <body>
18
-
19
- <%= yield %>
20
-
21
- </body>
22
- </html>
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env ruby
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
- load Gem.bin_path('bundler', 'bundle')
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- APP_PATH = File.expand_path('../../config/application', __FILE__)
3
- require_relative '../config/boot'
4
- require 'rails/commands'
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require_relative '../config/boot'
3
- require 'rake'
4
- Rake.application.run
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast
4
- # It gets overwritten when you run the `spring binstub` command
5
-
6
- unless defined?(Spring)
7
- require "rubygems"
8
- require "bundler"
9
-
10
- if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
11
- ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
12
- ENV["GEM_HOME"] = ""
13
- Gem.paths = ENV
14
-
15
- gem "spring", match[1]
16
- require "spring/binstub"
17
- end
18
- end
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,32 +0,0 @@
1
- require File.expand_path('../boot', __FILE__)
2
-
3
- require 'rails/all'
4
-
5
- # Require the gems listed in Gemfile, including any gems
6
- # you've limited to :test, :development, or :production.
7
- Bundler.require(*Rails.groups)
8
-
9
- module RubyOnRailsWebapp
10
- class Application < Rails::Application
11
-
12
-
13
- # Set this if you want to get the error_description
14
- # OmniAuth.config.on_failure = Proc.new { |env|
15
- # message_key = env['omniauth.error.type']
16
- # error_description = Rack::Utils.escape(env['omniauth.error'].error_reason)
17
- # new_path = "#{env['SCRIPT_NAME']}#{OmniAuth.config.path_prefix}/failure?message=#{message_key}&error_description=#{error_description}"
18
- # Rack::Response.new(['302 Moved'], 302, 'Location' => new_path).finish
19
- # }
20
- # Settings in config/environments/* take precedence over those specified here.
21
- # Application configuration should go into files in config/initializers
22
- # -- all .rb files in that directory are automatically loaded.
23
-
24
- # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
25
- # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
26
- # config.time_zone = 'Central Time (US & Canada)'
27
-
28
- # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
29
- # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
30
- # config.i18n.default_locale = :de
31
- end
32
- end
@@ -1,4 +0,0 @@
1
- # Set up gems listed in the Gemfile.
2
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
3
-
4
- require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
@@ -1,20 +0,0 @@
1
- development:
2
- adapter: sqlite3
3
- pool: 5
4
- timeout: 5000
5
- database: db/development.sqlite3
6
-
7
- # Warning: The database defined as "test" will be erased and
8
- # re-generated from your development database when you run "rake".
9
- # Do not set this db to the same as development or production.
10
- test:
11
- adapter: sqlite3
12
- pool: 5
13
- timeout: 5000
14
- database: db/development.sqlite3
15
-
16
- production:
17
- adapter: postgresql
18
- database: my_database_production
19
- pool: 5
20
- timeout: 5000
@@ -1,5 +0,0 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
@@ -1,39 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # In the development environment your application's code is reloaded on
5
- # every request. This slows down response time but is perfect for development
6
- # since you don't have to restart the web server when you make code changes.
7
- config.cache_classes = false
8
-
9
- config.cachestore = :memorystore
10
-
11
- # Do not eager load code on boot.
12
- config.eager_load = false
13
-
14
- # Show full error reports and disable caching.
15
- config.consider_all_requests_local = true
16
- config.action_controller.perform_caching = false
17
-
18
- # Don't care if the mailer can't send.
19
- config.action_mailer.raise_delivery_errors = false
20
-
21
- # Print deprecation notices to the Rails logger.
22
- config.active_support.deprecation = :log
23
-
24
- # Raise an error on page load if there are pending migrations.
25
- config.active_record.migration_error = :page_load
26
-
27
- # Debug mode disables concatenation and preprocessing of assets.
28
- # This option may cause significant delays in view rendering with a large
29
- # number of complex assets.
30
- config.assets.debug = true
31
-
32
- # Adds additional error checking when serving assets at runtime.
33
- # Checks for improperly declared sprockets dependencies.
34
- # Raises helpful error messages.
35
- config.assets.raise_runtime_errors = true
36
-
37
- # Raises error for missing translations
38
- # config.action_view.raise_on_missing_translations = true
39
- end
@@ -1,85 +0,0 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # Code is not reloaded between requests.
5
- config.cache_classes = true
6
-
7
- # Eager load code on boot. This eager loads most of Rails and
8
- # your application in memory, allowing both threaded web servers
9
- # and those relying on copy on write to perform better.
10
- # Rake tasks automatically ignore this option for performance.
11
- config.eager_load = true
12
-
13
- # Full error reports are disabled and caching is turned on.
14
- config.consider_all_requests_local = false
15
- config.action_controller.perform_caching = true
16
-
17
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
- # Add `rack-cache` to your Gemfile before enabling this.
19
- # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20
- # config.action_dispatch.rack_cache = true
21
-
22
- # Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
24
-
25
- # Compress JavaScripts and CSS.
26
- config.assets.js_compressor = :uglifier
27
- # config.assets.css_compressor = :sass
28
-
29
- # Do not fallback to assets pipeline if a precompiled asset is missed.
30
- config.assets.compile = false
31
-
32
- # Generate digests for assets URLs.
33
- config.assets.digest = true
34
-
35
- # Version of your assets, change this if you want to expire all your assets.
36
- config.assets.version = '1.0'
37
-
38
- # Specifies the header that your server uses for sending files.
39
- # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
40
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
41
-
42
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
43
- # config.force_ssl = true
44
-
45
- # Set to :debug to see everything in the log.
46
- config.log_level = :info
47
-
48
- # Prepend all log lines with the following tags.
49
- # config.log_tags = [ :subdomain, :uuid ]
50
-
51
- # Use a different logger for distributed setups.
52
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
53
-
54
- # Use a different cache store in production.
55
- # config.cache_store = :mem_cache_store
56
-
57
- config.cachestore = :memorystore
58
-
59
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
60
- # config.action_controller.asset_host = "http://assets.example.com"
61
-
62
- # Precompile additional assets.
63
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
64
- # config.assets.precompile += %w( search.js )
65
-
66
- # Ignore bad email addresses and do not raise email delivery errors.
67
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
68
- # config.action_mailer.raise_delivery_errors = false
69
-
70
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
71
- # the I18n.default_locale when a translation cannot be found).
72
- config.i18n.fallbacks = true
73
-
74
- # Send deprecation notices to registered listeners.
75
- config.active_support.deprecation = :notify
76
-
77
- # Disable automatic flushing of the log to improve performance.
78
- # config.autoflush_log = false
79
-
80
- # Use default logging formatter so that PID and timestamp are not suppressed.
81
- config.log_formatter = ::Logger::Formatter.new
82
-
83
- # Do not dump schema after migrations.
84
- config.active_record.dump_schema_after_migration = false
85
- end