optimacms_options 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/Rakefile +37 -37
  4. data/app/assets/javascripts/optimacms_options/application.js +13 -13
  5. data/app/assets/stylesheets/optimacms_options/application.css +15 -15
  6. data/app/controllers/optimacms_options/admin/options_controller.rb +161 -161
  7. data/app/helpers/optimacms_options/application_helper.rb +4 -4
  8. data/app/helpers/optimacms_options/filter_helper.rb +17 -17
  9. data/app/views/layouts/optimacms_options/application.html.erb +14 -14
  10. data/app/views/optimacms_options/admin/options/_form.html.haml +16 -16
  11. data/app/views/optimacms_options/admin/options/edit.html.haml +2 -2
  12. data/app/views/optimacms_options/admin/options/index.html.haml +41 -41
  13. data/app/views/optimacms_options/admin/options/new.html.haml +2 -2
  14. data/config/routes.rb +13 -13
  15. data/db/migrate/20160125141700_optimacms_options.rb +16 -16
  16. data/lib/optimacms/admin_menu/admin_menu.rb +22 -22
  17. data/lib/optimacms_options.rb +6 -6
  18. data/lib/optimacms_options/engine.rb +38 -38
  19. data/lib/optimacms_options/version.rb +3 -3
  20. data/lib/tasks/optimacms_options_tasks.rake +4 -4
  21. data/spec/dummy/README.rdoc +28 -28
  22. data/spec/dummy/Rakefile +6 -6
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -13
  24. data/spec/dummy/app/assets/stylesheets/application.css +15 -15
  25. data/spec/dummy/app/controllers/application_controller.rb +5 -5
  26. data/spec/dummy/app/controllers/debug_controller.rb +38 -38
  27. data/spec/dummy/app/helpers/application_helper.rb +2 -2
  28. data/spec/dummy/app/models/concerns/option_concern.rb +11 -11
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -14
  30. data/spec/dummy/bin/bundle +3 -3
  31. data/spec/dummy/bin/rails +4 -4
  32. data/spec/dummy/bin/rake +4 -4
  33. data/spec/dummy/bin/setup +29 -29
  34. data/spec/dummy/config.ru +4 -4
  35. data/spec/dummy/config/application.rb +36 -36
  36. data/spec/dummy/config/boot.rb +5 -5
  37. data/spec/dummy/config/database.yml +43 -43
  38. data/spec/dummy/config/environment.rb +5 -5
  39. data/spec/dummy/config/environments/development.rb +41 -41
  40. data/spec/dummy/config/environments/production.rb +79 -79
  41. data/spec/dummy/config/environments/test.rb +42 -42
  42. data/spec/dummy/config/initializers/assets.rb +11 -11
  43. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -7
  44. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -3
  45. data/spec/dummy/config/initializers/devise.rb +265 -265
  46. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  47. data/spec/dummy/config/initializers/inflections.rb +16 -16
  48. data/spec/dummy/config/initializers/kaminari_config.rb +10 -10
  49. data/spec/dummy/config/initializers/mime_types.rb +4 -4
  50. data/spec/dummy/config/initializers/redis.rb +1 -1
  51. data/spec/dummy/config/initializers/session_store.rb +3 -3
  52. data/spec/dummy/config/initializers/simple_form.rb +166 -166
  53. data/spec/dummy/config/initializers/simple_form_bootstrap.rb +136 -136
  54. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -14
  55. data/spec/dummy/config/locales/devise.en.yml +62 -62
  56. data/spec/dummy/config/locales/en.yml +23 -23
  57. data/spec/dummy/config/routes.rb +18 -18
  58. data/spec/dummy/config/secrets.yml +25 -25
  59. data/spec/dummy/db/schema.rb +176 -176
  60. data/spec/dummy/lib/optimacms/admin_menu/admin_menu.rb +22 -22
  61. data/spec/dummy/public/404.html +67 -67
  62. data/spec/dummy/public/422.html +67 -67
  63. data/spec/dummy/public/500.html +66 -66
  64. metadata +49 -297
  65. data/spec/dummy/log/development.log +0 -1747
  66. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_alerts.scssc +0 -0
  67. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_badges.scssc +0 -0
  68. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_breadcrumbs.scssc +0 -0
  69. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_button-groups.scssc +0 -0
  70. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_buttons.scssc +0 -0
  71. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_carousel.scssc +0 -0
  72. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_close.scssc +0 -0
  73. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_code.scssc +0 -0
  74. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_component-animations.scssc +0 -0
  75. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_dropdowns.scssc +0 -0
  76. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_forms.scssc +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_glyphicons.scssc +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_grid.scssc +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_input-groups.scssc +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_jumbotron.scssc +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_labels.scssc +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_list-group.scssc +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_media.scssc +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_mixins.scssc +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_modals.scssc +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_navbar.scssc +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_navs.scssc +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_normalize.scssc +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_pager.scssc +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_pagination.scssc +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_panels.scssc +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_popovers.scssc +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_print.scssc +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_progress-bars.scssc +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_responsive-embed.scssc +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_responsive-utilities.scssc +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_scaffolding.scssc +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_tables.scssc +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_thumbnails.scssc +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_tooltip.scssc +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_type.scssc +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_utilities.scssc +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_variables.scssc +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sass/11fce54630aed915261742acbd0ef3a1c7b4161a/_wells.scssc +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_alerts.scssc +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_background-variant.scssc +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_border-radius.scssc +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_buttons.scssc +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_center-block.scssc +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_clearfix.scssc +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_forms.scssc +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_gradients.scssc +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_grid-framework.scssc +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_grid.scssc +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_hide-text.scssc +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_image.scssc +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_labels.scssc +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_list-group.scssc +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_nav-divider.scssc +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_nav-vertical-align.scssc +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_opacity.scssc +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_pagination.scssc +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_panels.scssc +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_progress-bar.scssc +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_reset-filter.scssc +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_resize.scssc +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_responsive-visibility.scssc +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_size.scssc +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_tab-focus.scssc +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_table-row.scssc +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_text-emphasis.scssc +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_text-overflow.scssc +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sass/6c7690d238f175bfb8aa999e56e1f4350201abb4/_vendor-prefixes.scssc +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sass/6ed128e433a3e2eab57ed9ae5f432cbab6ca4167/font-awesome.css.erbc +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sass/a47a571d26f40d72e4497e6da07dd683983a63b9/noskin.css.scssc +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/admin.css.scssc +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/admin_tpl.css.scssc +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/bootstrap_and_overrides.css.scssc +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/bootstrap_custom.css.scssc +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/bootstrap_variables.css.scssc +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/colors.css.scssc +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sass/c45ecb3d10649195657aa8f13c46899f656eedcf/tpl.css.scssc +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sprockets/0096b3abe9e696ba1341fdf5fc943c43 +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sprockets/036aa2938b562b210d90b02a48a2cbbf +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sprockets/053f826d1ea01a2fac355de0755e5c40 +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sprockets/15445a0686472faa0d404f3919935868 +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sprockets/2a215b5ed77dc9f1cdf1e93604bb281f +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sprockets/322158d4d6be6b20fdcd9adaeb41f1b0 +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sprockets/3240ef40c1dc9d13156bbd790ec2651a +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sprockets/4d46ce1560a6be13a9a86127383a6c42 +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sprockets/4fabda5d21695272630e1d224064b588 +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sprockets/529a74a4530de52f6c3ebbf107ffe9f2 +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sprockets/599b9a466c30f973de55b377f6dcb8a6 +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sprockets/5ed2698a8f2e14313e56bf216cfc9e7c +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sprockets/620684c8c287dfd4094c2d0fa732e283 +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sprockets/648b944dea9bf325c0b7b1fb075d5e96 +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sprockets/6a506ac52ade0ada16f4ecd5d70b66dd +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sprockets/6cdbd6f171a27a578bcb07dd5bfa83a2 +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sprockets/6f943f22c610e6417422e4a13e0bcc0d +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sprockets/721d6e4f84789fa4fb35457b69eb67e5 +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sprockets/7bcf8e631c4c6ef1a9309400ed610ae1 +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sprockets/894825d33594984b9a26a8f644e96e35 +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sprockets/8956737a82f17db48d50e13f133aeefc +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sprockets/8b5a7992567ebbeb9a882d074778f8c8 +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sprockets/8fb08f5d6d8bcb39342d301caa95dd87 +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sprockets/91dc3111b0d2d688aba1712ab9c878e4 +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sprockets/936470113fbeb58b0a37b52fdb9f3c95 +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sprockets/96ef3c76fae58b20328b26b5761ca751 +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sprockets/99e8d6370ba85ec4a61d953f5ed261af +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sprockets/9f98a530db67f63b82a81de07801a697 +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sprockets/a64dbcf0e4afe0985b1abd3e209d17cd +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sprockets/aa58fb159780a7200a1bc4c6844cc5c4 +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sprockets/ab7af7f8d44858097315fccf3f3a76bb +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sprockets/abee703ecf82928fbab34c8117189711 +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sprockets/b1e06f52048dca656cfc1545c6da0e98 +0 -0
  176. data/spec/dummy/tmp/cache/assets/development/sprockets/b7aa181369305785a973d277de1e9a53 +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sprockets/b84b563223b407a2d395e45b8bc15177 +0 -0
  178. data/spec/dummy/tmp/cache/assets/development/sprockets/b9e034dd819b5d19e1f00e65f18a4148 +0 -0
  179. data/spec/dummy/tmp/cache/assets/development/sprockets/ba9859d0d2b7d4d7d5b03ff3a71ed478 +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sprockets/bcf32667baee4291094d671b6525f7bf +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sprockets/c0218f3ef5e0a446b2092df205929cf4 +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sprockets/c9a04033390864f7e3a7896cd11e069e +0 -0
  183. data/spec/dummy/tmp/cache/assets/development/sprockets/db10255455c9ddf7ba65c112e8e4ccac +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sprockets/e3dd086dd858b5bff9cfd60a031c2091 +0 -0
  185. data/spec/dummy/tmp/cache/assets/development/sprockets/e826b33ffd3a105771116e5fe8794059 +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sprockets/e9004898ce4a96e3ffdef8248b6f634a +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sprockets/fa7a436598a15595baac05d3bc35c469 +0 -0
  188. data/spec/dummy/tmp/pids/server.pid +0 -1
@@ -1,5 +1,5 @@
1
- # Load the Rails application.
2
- require File.expand_path('../application', __FILE__)
3
-
4
- # Initialize the Rails application.
5
- Rails.application.initialize!
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -1,41 +1,41 @@
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
- # Do not eager load code on boot.
10
- config.eager_load = false
11
-
12
- # Show full error reports and disable caching.
13
- config.consider_all_requests_local = true
14
- config.action_controller.perform_caching = false
15
-
16
- # Don't care if the mailer can't send.
17
- config.action_mailer.raise_delivery_errors = false
18
-
19
- # Print deprecation notices to the Rails logger.
20
- config.active_support.deprecation = :log
21
-
22
- # Raise an error on page load if there are pending migrations.
23
- config.active_record.migration_error = :page_load
24
-
25
- # Debug mode disables concatenation and preprocessing of assets.
26
- # This option may cause significant delays in view rendering with a large
27
- # number of complex assets.
28
- config.assets.debug = true
29
-
30
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
- # yet still be able to expire them through the digest params.
32
- config.assets.digest = true
33
-
34
- # Adds additional error checking when serving assets at runtime.
35
- # Checks for improperly declared sprockets dependencies.
36
- # Raises helpful error messages.
37
- config.assets.raise_runtime_errors = true
38
-
39
- # Raises error for missing translations
40
- # config.action_view.raise_on_missing_translations = true
41
- end
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
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -1,79 +1,79 @@
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
20
- # NGINX, varnish or squid.
21
- # config.action_dispatch.rack_cache = true
22
-
23
- # Disable serving static files from the `/public` folder by default since
24
- # Apache or NGINX already handles this.
25
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
-
27
- # Compress JavaScripts and CSS.
28
- config.assets.js_compressor = :uglifier
29
- # config.assets.css_compressor = :sass
30
-
31
- # Do not fallback to assets pipeline if a precompiled asset is missed.
32
- config.assets.compile = false
33
-
34
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
- # yet still be able to expire them through the digest params.
36
- config.assets.digest = true
37
-
38
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
-
40
- # Specifies the header that your server uses for sending files.
41
- # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
- # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
-
44
- # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
- # config.force_ssl = true
46
-
47
- # Use the lowest log level to ensure availability of diagnostic information
48
- # when problems arise.
49
- config.log_level = :debug
50
-
51
- # Prepend all log lines with the following tags.
52
- # config.log_tags = [ :subdomain, :uuid ]
53
-
54
- # Use a different logger for distributed setups.
55
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
-
57
- # Use a different cache store in production.
58
- # config.cache_store = :mem_cache_store
59
-
60
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
- # config.action_controller.asset_host = 'http://assets.example.com'
62
-
63
- # Ignore bad email addresses and do not raise email delivery errors.
64
- # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
- # config.action_mailer.raise_delivery_errors = false
66
-
67
- # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
- # the I18n.default_locale when a translation cannot be found).
69
- config.i18n.fallbacks = true
70
-
71
- # Send deprecation notices to registered listeners.
72
- config.active_support.deprecation = :notify
73
-
74
- # Use default logging formatter so that PID and timestamp are not suppressed.
75
- config.log_formatter = ::Logger::Formatter.new
76
-
77
- # Do not dump schema after migrations.
78
- config.active_record.dump_schema_after_migration = false
79
- end
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
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
+
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
30
+
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
32
+ config.assets.compile = false
33
+
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
36
+ config.assets.digest = true
37
+
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
+
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
50
+
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
53
+
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+ end
@@ -1,42 +1,42 @@
1
- Rails.application.configure do
2
- # Settings specified here will take precedence over those in config/application.rb.
3
-
4
- # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
6
- # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
8
- config.cache_classes = true
9
-
10
- # Do not eager load code on boot. This avoids loading your whole application
11
- # just for the purpose of running a single test. If you are using a tool that
12
- # preloads Rails for running tests, you may have to set it to true.
13
- config.eager_load = false
14
-
15
- # Configure static file server for tests with Cache-Control for performance.
16
- config.serve_static_files = true
17
- config.static_cache_control = 'public, max-age=3600'
18
-
19
- # Show full error reports and disable caching.
20
- config.consider_all_requests_local = true
21
- config.action_controller.perform_caching = false
22
-
23
- # Raise exceptions instead of rendering exception templates.
24
- config.action_dispatch.show_exceptions = false
25
-
26
- # Disable request forgery protection in test environment.
27
- config.action_controller.allow_forgery_protection = false
28
-
29
- # Tell Action Mailer not to deliver emails to the real world.
30
- # The :test delivery method accumulates sent emails in the
31
- # ActionMailer::Base.deliveries array.
32
- config.action_mailer.delivery_method = :test
33
-
34
- # Randomize the order test cases are executed.
35
- config.active_support.test_order = :random
36
-
37
- # Print deprecation notices to the stderr.
38
- config.active_support.deprecation = :stderr
39
-
40
- # Raises error for missing translations
41
- # config.action_view.raise_on_missing_translations = true
42
- end
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -1,11 +1,11 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Version of your assets, change this if you want to expire all your assets.
4
- Rails.application.config.assets.version = '1.0'
5
-
6
- # Add additional assets to the asset load path
7
- # Rails.application.config.assets.paths << Emoji.images_path
8
-
9
- # Precompile additional assets.
10
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
- # Rails.application.config.assets.precompile += %w( search.js )
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -1,7 +1,7 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -1,3 +1,3 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails.application.config.action_dispatch.cookies_serializer = :json
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -1,265 +1,265 @@
1
- # Use this hook to configure devise mailer, warden hooks and so forth.
2
- # Many of these configuration options can be set straight in your model.
3
- Devise.setup do |config|
4
- config.scoped_views = true
5
-
6
- config.secret_key = Rails.application.secrets.devise_secret_key
7
-
8
- # Setup a pepper to generate the encrypted password.
9
- config.pepper = '14f890567940ebd97c796ca1cb0969224bed880faee0d78e8b213f1b2e977d29e2c6e390cd50f3fb98d5561bdeb1722645df5fe4f7cedb630c7889c9c79e27e'
10
-
11
- # ==> Mailer Configuration
12
- # Configure the e-mail address which will be shown in Devise::Mailer,
13
- # note that it will be overwritten if you use your own mailer class
14
- # with default "from" parameter.
15
- config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
-
17
- # Configure the class responsible to send e-mails.
18
- # config.mailer = 'Devise::Mailer'
19
-
20
- # ==> ORM configuration
21
- # Load and configure the ORM. Supports :active_record (default) and
22
- # :mongoid (bson_ext recommended) by default. Other ORMs may be
23
- # available as additional gems.
24
- require 'devise/orm/active_record'
25
-
26
- # ==> Configuration for any authentication mechanism
27
- # Configure which keys are used when authenticating a user. The default is
28
- # just :email. You can configure it to use [:username, :subdomain], so for
29
- # authenticating a user, both parameters are required. Remember that those
30
- # parameters are used only when authenticating and not when retrieving from
31
- # session. If you need permissions, you should implement that in a before filter.
32
- # You can also supply a hash where the value is a boolean determining whether
33
- # or not authentication should be aborted when the value is not present.
34
- # config.authentication_keys = [:email]
35
-
36
- # Configure parameters from the request object used for authentication. Each entry
37
- # given should be a request method and it will automatically be passed to the
38
- # find_for_authentication method and considered in your model lookup. For instance,
39
- # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
40
- # The same considerations mentioned for authentication_keys also apply to request_keys.
41
- # config.request_keys = []
42
-
43
- # Configure which authentication keys should be case-insensitive.
44
- # These keys will be downcased upon creating or modifying a user and when used
45
- # to authenticate or find a user. Default is :email.
46
- config.case_insensitive_keys = [:email]
47
-
48
- # Configure which authentication keys should have whitespace stripped.
49
- # These keys will have whitespace before and after removed upon creating or
50
- # modifying a user and when used to authenticate or find a user. Default is :email.
51
- config.strip_whitespace_keys = [:email]
52
-
53
- # Tell if authentication through request.params is enabled. True by default.
54
- # It can be set to an array that will enable params authentication only for the
55
- # given strategies, for example, `config.params_authenticatable = [:database]` will
56
- # enable it only for database (email + password) authentication.
57
- # config.params_authenticatable = true
58
-
59
- # Tell if authentication through HTTP Auth is enabled. False by default.
60
- # It can be set to an array that will enable http authentication only for the
61
- # given strategies, for example, `config.http_authenticatable = [:database]` will
62
- # enable it only for database authentication. The supported strategies are:
63
- # :database = Support basic authentication with authentication key + password
64
- # config.http_authenticatable = false
65
-
66
- # If 401 status code should be returned for AJAX requests. True by default.
67
- # config.http_authenticatable_on_xhr = true
68
-
69
- # The realm used in Http Basic Authentication. 'Application' by default.
70
- # config.http_authentication_realm = 'Application'
71
-
72
- # It will change confirmation, password recovery and other workflows
73
- # to behave the same regardless if the e-mail provided was right or wrong.
74
- # Does not affect registerable.
75
- # config.paranoid = true
76
-
77
- # By default Devise will store the user in session. You can skip storage for
78
- # particular strategies by setting this option.
79
- # Notice that if you are skipping storage for all authentication paths, you
80
- # may want to disable generating routes to Devise's sessions controller by
81
- # passing skip: :sessions to `devise_for` in your config/routes.rb
82
- config.skip_session_storage = [:http_auth]
83
-
84
- # By default, Devise cleans up the CSRF token on authentication to
85
- # avoid CSRF token fixation attacks. This means that, when using AJAX
86
- # requests for sign in and sign up, you need to get a new CSRF token
87
- # from the server. You can disable this option at your own risk.
88
- # config.clean_up_csrf_token_on_authentication = true
89
-
90
- # ==> Configuration for :database_authenticatable
91
- # For bcrypt, this is the cost for hashing the password and defaults to 10. If
92
- # using other encryptors, it sets how many times you want the password re-encrypted.
93
- #
94
- # Limiting the stretches to just one in testing will increase the performance of
95
- # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
96
- # a value less than 10 in other environments. Note that, for bcrypt (the default
97
- # encryptor), the cost increases exponentially with the number of stretches (e.g.
98
- # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
99
- config.stretches = Rails.env.test? ? 1 : 10
100
-
101
- # Setup a pepper to generate the encrypted password.
102
- # config.pepper = 'a10216c54c5f16257ba38852216ce84a0f92f1cde4b9c6ac16e858b7e3d58233f76919ee628328b4f83982c57463e803bf28d920d60baef0c0c6e573d9c4e1b2'
103
-
104
- # Send a notification email when the user's password is changed
105
- # config.send_password_change_notification = false
106
-
107
- # ==> Configuration for :confirmable
108
- # A period that the user is allowed to access the website even without
109
- # confirming their account. For instance, if set to 2.days, the user will be
110
- # able to access the website for two days without confirming their account,
111
- # access will be blocked just in the third day. Default is 0.days, meaning
112
- # the user cannot access the website without confirming their account.
113
- # config.allow_unconfirmed_access_for = 2.days
114
-
115
- # A period that the user is allowed to confirm their account before their
116
- # token becomes invalid. For example, if set to 3.days, the user can confirm
117
- # their account within 3 days after the mail was sent, but on the fourth day
118
- # their account can't be confirmed with the token any more.
119
- # Default is nil, meaning there is no restriction on how long a user can take
120
- # before confirming their account.
121
- # config.confirm_within = 3.days
122
-
123
- # If true, requires any email changes to be confirmed (exactly the same way as
124
- # initial account confirmation) to be applied. Requires additional unconfirmed_email
125
- # db field (see migrations). Until confirmed, new email is stored in
126
- # unconfirmed_email column, and copied to email column on successful confirmation.
127
- config.reconfirmable = true
128
-
129
- # Defines which key will be used when confirming an account
130
- # config.confirmation_keys = [:email]
131
-
132
- # ==> Configuration for :rememberable
133
- # The time the user will be remembered without asking for credentials again.
134
- # config.remember_for = 2.weeks
135
-
136
- # Invalidates all the remember me tokens when the user signs out.
137
- config.expire_all_remember_me_on_sign_out = true
138
-
139
- # If true, extends the user's remember period when remembered via cookie.
140
- # config.extend_remember_period = false
141
-
142
- # Options to be passed to the created cookie. For instance, you can set
143
- # secure: true in order to force SSL only cookies.
144
- # config.rememberable_options = {}
145
-
146
- # ==> Configuration for :validatable
147
- # Range for password length.
148
- config.password_length = 8..72
149
-
150
- # Email regex used to validate email formats. It simply asserts that
151
- # one (and only one) @ exists in the given string. This is mainly
152
- # to give user feedback and not to assert the e-mail validity.
153
- # config.email_regexp = /\A[^@]+@[^@]+\z/
154
-
155
- # ==> Configuration for :timeoutable
156
- # The time you want to timeout the user session without activity. After this
157
- # time the user will be asked for credentials again. Default is 30 minutes.
158
- # config.timeout_in = 30.minutes
159
-
160
- # ==> Configuration for :lockable
161
- # Defines which strategy will be used to lock an account.
162
- # :failed_attempts = Locks an account after a number of failed attempts to sign in.
163
- # :none = No lock strategy. You should handle locking by yourself.
164
- # config.lock_strategy = :failed_attempts
165
-
166
- # Defines which key will be used when locking and unlocking an account
167
- # config.unlock_keys = [:email]
168
-
169
- # Defines which strategy will be used to unlock an account.
170
- # :email = Sends an unlock link to the user email
171
- # :time = Re-enables login after a certain amount of time (see :unlock_in below)
172
- # :both = Enables both strategies
173
- # :none = No unlock strategy. You should handle unlocking by yourself.
174
- # config.unlock_strategy = :both
175
-
176
- # Number of authentication tries before locking an account if lock_strategy
177
- # is failed attempts.
178
- # config.maximum_attempts = 20
179
-
180
- # Time interval to unlock the account if :time is enabled as unlock_strategy.
181
- # config.unlock_in = 1.hour
182
-
183
- # Warn on the last attempt before the account is locked.
184
- # config.last_attempt_warning = true
185
-
186
- # ==> Configuration for :recoverable
187
- #
188
- # Defines which key will be used when recovering the password for an account
189
- # config.reset_password_keys = [:email]
190
-
191
- # Time interval you can reset your password with a reset password key.
192
- # Don't put a too small interval or your users won't have the time to
193
- # change their passwords.
194
- config.reset_password_within = 6.hours
195
-
196
- # When set to false, does not sign a user in automatically after their password is
197
- # reset. Defaults to true, so a user is signed in automatically after a reset.
198
- # config.sign_in_after_reset_password = true
199
-
200
- # ==> Configuration for :encryptable
201
- # Allow you to use another encryption algorithm besides bcrypt (default). You can use
202
- # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
203
- # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
204
- # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
205
- # REST_AUTH_SITE_KEY to pepper).
206
- #
207
- # Require the `devise-encryptable` gem when using anything other than bcrypt
208
- # config.encryptor = :sha512
209
-
210
- # ==> Scopes configuration
211
- # Turn scoped views on. Before rendering "sessions/new", it will first check for
212
- # "users/sessions/new". It's turned off by default because it's slower if you
213
- # are using only default views.
214
- # config.scoped_views = false
215
-
216
- # Configure the default scope given to Warden. By default it's the first
217
- # devise role declared in your routes (usually :user).
218
- # config.default_scope = :user
219
-
220
- # Set this configuration to false if you want /users/sign_out to sign out
221
- # only the current scope. By default, Devise signs out all scopes.
222
- # config.sign_out_all_scopes = true
223
-
224
- # ==> Navigation configuration
225
- # Lists the formats that should be treated as navigational. Formats like
226
- # :html, should redirect to the sign in page when the user does not have
227
- # access, but formats like :xml or :json, should return 401.
228
- #
229
- # If you have any extra navigational formats, like :iphone or :mobile, you
230
- # should add them to the navigational formats lists.
231
- #
232
- # The "*/*" below is required to match Internet Explorer requests.
233
- # config.navigational_formats = ['*/*', :html]
234
-
235
- # The default HTTP method used to sign out a resource. Default is :delete.
236
- config.sign_out_via = :delete
237
-
238
- # ==> OmniAuth
239
- # Add a new OmniAuth provider. Check the wiki for more information on setting
240
- # up on your models and hooks.
241
- # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
242
-
243
- # ==> Warden configuration
244
- # If you want to use other strategies, that are not supported by Devise, or
245
- # change the failure app, you can configure them inside the config.warden block.
246
- #
247
- # config.warden do |manager|
248
- # manager.intercept_401 = false
249
- # manager.default_strategies(scope: :user).unshift :some_external_strategy
250
- # end
251
-
252
- # ==> Mountable engine configurations
253
- # When using Devise inside an engine, let's call it `MyEngine`, and this engine
254
- # is mountable, there are some extra configurations to be taken into account.
255
- # The following options are available, assuming the engine is mounted as:
256
- #
257
- # mount MyEngine, at: '/my_engine'
258
- #
259
- # The router that invoked `devise_for`, in the example above, would be:
260
- # config.router_name = :my_engine
261
- #
262
- # When using OmniAuth, Devise cannot automatically set OmniAuth path,
263
- # so you need to do it manually. For the users scope, it would be:
264
- # config.omniauth_path_prefix = '/my_engine/users/auth'
265
- end
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ config.scoped_views = true
5
+
6
+ config.secret_key = Rails.application.secrets.devise_secret_key
7
+
8
+ # Setup a pepper to generate the encrypted password.
9
+ config.pepper = '14f890567940ebd97c796ca1cb0969224bed880faee0d78e8b213f1b2e977d29e2c6e390cd50f3fb98d5561bdeb1722645df5fe4f7cedb630c7889c9c79e27e'
10
+
11
+ # ==> Mailer Configuration
12
+ # Configure the e-mail address which will be shown in Devise::Mailer,
13
+ # note that it will be overwritten if you use your own mailer class
14
+ # with default "from" parameter.
15
+ config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
16
+
17
+ # Configure the class responsible to send e-mails.
18
+ # config.mailer = 'Devise::Mailer'
19
+
20
+ # ==> ORM configuration
21
+ # Load and configure the ORM. Supports :active_record (default) and
22
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
23
+ # available as additional gems.
24
+ require 'devise/orm/active_record'
25
+
26
+ # ==> Configuration for any authentication mechanism
27
+ # Configure which keys are used when authenticating a user. The default is
28
+ # just :email. You can configure it to use [:username, :subdomain], so for
29
+ # authenticating a user, both parameters are required. Remember that those
30
+ # parameters are used only when authenticating and not when retrieving from
31
+ # session. If you need permissions, you should implement that in a before filter.
32
+ # You can also supply a hash where the value is a boolean determining whether
33
+ # or not authentication should be aborted when the value is not present.
34
+ # config.authentication_keys = [:email]
35
+
36
+ # Configure parameters from the request object used for authentication. Each entry
37
+ # given should be a request method and it will automatically be passed to the
38
+ # find_for_authentication method and considered in your model lookup. For instance,
39
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
40
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
41
+ # config.request_keys = []
42
+
43
+ # Configure which authentication keys should be case-insensitive.
44
+ # These keys will be downcased upon creating or modifying a user and when used
45
+ # to authenticate or find a user. Default is :email.
46
+ config.case_insensitive_keys = [:email]
47
+
48
+ # Configure which authentication keys should have whitespace stripped.
49
+ # These keys will have whitespace before and after removed upon creating or
50
+ # modifying a user and when used to authenticate or find a user. Default is :email.
51
+ config.strip_whitespace_keys = [:email]
52
+
53
+ # Tell if authentication through request.params is enabled. True by default.
54
+ # It can be set to an array that will enable params authentication only for the
55
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
56
+ # enable it only for database (email + password) authentication.
57
+ # config.params_authenticatable = true
58
+
59
+ # Tell if authentication through HTTP Auth is enabled. False by default.
60
+ # It can be set to an array that will enable http authentication only for the
61
+ # given strategies, for example, `config.http_authenticatable = [:database]` will
62
+ # enable it only for database authentication. The supported strategies are:
63
+ # :database = Support basic authentication with authentication key + password
64
+ # config.http_authenticatable = false
65
+
66
+ # If 401 status code should be returned for AJAX requests. True by default.
67
+ # config.http_authenticatable_on_xhr = true
68
+
69
+ # The realm used in Http Basic Authentication. 'Application' by default.
70
+ # config.http_authentication_realm = 'Application'
71
+
72
+ # It will change confirmation, password recovery and other workflows
73
+ # to behave the same regardless if the e-mail provided was right or wrong.
74
+ # Does not affect registerable.
75
+ # config.paranoid = true
76
+
77
+ # By default Devise will store the user in session. You can skip storage for
78
+ # particular strategies by setting this option.
79
+ # Notice that if you are skipping storage for all authentication paths, you
80
+ # may want to disable generating routes to Devise's sessions controller by
81
+ # passing skip: :sessions to `devise_for` in your config/routes.rb
82
+ config.skip_session_storage = [:http_auth]
83
+
84
+ # By default, Devise cleans up the CSRF token on authentication to
85
+ # avoid CSRF token fixation attacks. This means that, when using AJAX
86
+ # requests for sign in and sign up, you need to get a new CSRF token
87
+ # from the server. You can disable this option at your own risk.
88
+ # config.clean_up_csrf_token_on_authentication = true
89
+
90
+ # ==> Configuration for :database_authenticatable
91
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
92
+ # using other encryptors, it sets how many times you want the password re-encrypted.
93
+ #
94
+ # Limiting the stretches to just one in testing will increase the performance of
95
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
96
+ # a value less than 10 in other environments. Note that, for bcrypt (the default
97
+ # encryptor), the cost increases exponentially with the number of stretches (e.g.
98
+ # a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
99
+ config.stretches = Rails.env.test? ? 1 : 10
100
+
101
+ # Setup a pepper to generate the encrypted password.
102
+ # config.pepper = 'a10216c54c5f16257ba38852216ce84a0f92f1cde4b9c6ac16e858b7e3d58233f76919ee628328b4f83982c57463e803bf28d920d60baef0c0c6e573d9c4e1b2'
103
+
104
+ # Send a notification email when the user's password is changed
105
+ # config.send_password_change_notification = false
106
+
107
+ # ==> Configuration for :confirmable
108
+ # A period that the user is allowed to access the website even without
109
+ # confirming their account. For instance, if set to 2.days, the user will be
110
+ # able to access the website for two days without confirming their account,
111
+ # access will be blocked just in the third day. Default is 0.days, meaning
112
+ # the user cannot access the website without confirming their account.
113
+ # config.allow_unconfirmed_access_for = 2.days
114
+
115
+ # A period that the user is allowed to confirm their account before their
116
+ # token becomes invalid. For example, if set to 3.days, the user can confirm
117
+ # their account within 3 days after the mail was sent, but on the fourth day
118
+ # their account can't be confirmed with the token any more.
119
+ # Default is nil, meaning there is no restriction on how long a user can take
120
+ # before confirming their account.
121
+ # config.confirm_within = 3.days
122
+
123
+ # If true, requires any email changes to be confirmed (exactly the same way as
124
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
125
+ # db field (see migrations). Until confirmed, new email is stored in
126
+ # unconfirmed_email column, and copied to email column on successful confirmation.
127
+ config.reconfirmable = true
128
+
129
+ # Defines which key will be used when confirming an account
130
+ # config.confirmation_keys = [:email]
131
+
132
+ # ==> Configuration for :rememberable
133
+ # The time the user will be remembered without asking for credentials again.
134
+ # config.remember_for = 2.weeks
135
+
136
+ # Invalidates all the remember me tokens when the user signs out.
137
+ config.expire_all_remember_me_on_sign_out = true
138
+
139
+ # If true, extends the user's remember period when remembered via cookie.
140
+ # config.extend_remember_period = false
141
+
142
+ # Options to be passed to the created cookie. For instance, you can set
143
+ # secure: true in order to force SSL only cookies.
144
+ # config.rememberable_options = {}
145
+
146
+ # ==> Configuration for :validatable
147
+ # Range for password length.
148
+ config.password_length = 8..72
149
+
150
+ # Email regex used to validate email formats. It simply asserts that
151
+ # one (and only one) @ exists in the given string. This is mainly
152
+ # to give user feedback and not to assert the e-mail validity.
153
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
154
+
155
+ # ==> Configuration for :timeoutable
156
+ # The time you want to timeout the user session without activity. After this
157
+ # time the user will be asked for credentials again. Default is 30 minutes.
158
+ # config.timeout_in = 30.minutes
159
+
160
+ # ==> Configuration for :lockable
161
+ # Defines which strategy will be used to lock an account.
162
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
163
+ # :none = No lock strategy. You should handle locking by yourself.
164
+ # config.lock_strategy = :failed_attempts
165
+
166
+ # Defines which key will be used when locking and unlocking an account
167
+ # config.unlock_keys = [:email]
168
+
169
+ # Defines which strategy will be used to unlock an account.
170
+ # :email = Sends an unlock link to the user email
171
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
172
+ # :both = Enables both strategies
173
+ # :none = No unlock strategy. You should handle unlocking by yourself.
174
+ # config.unlock_strategy = :both
175
+
176
+ # Number of authentication tries before locking an account if lock_strategy
177
+ # is failed attempts.
178
+ # config.maximum_attempts = 20
179
+
180
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
181
+ # config.unlock_in = 1.hour
182
+
183
+ # Warn on the last attempt before the account is locked.
184
+ # config.last_attempt_warning = true
185
+
186
+ # ==> Configuration for :recoverable
187
+ #
188
+ # Defines which key will be used when recovering the password for an account
189
+ # config.reset_password_keys = [:email]
190
+
191
+ # Time interval you can reset your password with a reset password key.
192
+ # Don't put a too small interval or your users won't have the time to
193
+ # change their passwords.
194
+ config.reset_password_within = 6.hours
195
+
196
+ # When set to false, does not sign a user in automatically after their password is
197
+ # reset. Defaults to true, so a user is signed in automatically after a reset.
198
+ # config.sign_in_after_reset_password = true
199
+
200
+ # ==> Configuration for :encryptable
201
+ # Allow you to use another encryption algorithm besides bcrypt (default). You can use
202
+ # :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
203
+ # :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
204
+ # and :restful_authentication_sha1 (then you should set stretches to 10, and copy
205
+ # REST_AUTH_SITE_KEY to pepper).
206
+ #
207
+ # Require the `devise-encryptable` gem when using anything other than bcrypt
208
+ # config.encryptor = :sha512
209
+
210
+ # ==> Scopes configuration
211
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
212
+ # "users/sessions/new". It's turned off by default because it's slower if you
213
+ # are using only default views.
214
+ # config.scoped_views = false
215
+
216
+ # Configure the default scope given to Warden. By default it's the first
217
+ # devise role declared in your routes (usually :user).
218
+ # config.default_scope = :user
219
+
220
+ # Set this configuration to false if you want /users/sign_out to sign out
221
+ # only the current scope. By default, Devise signs out all scopes.
222
+ # config.sign_out_all_scopes = true
223
+
224
+ # ==> Navigation configuration
225
+ # Lists the formats that should be treated as navigational. Formats like
226
+ # :html, should redirect to the sign in page when the user does not have
227
+ # access, but formats like :xml or :json, should return 401.
228
+ #
229
+ # If you have any extra navigational formats, like :iphone or :mobile, you
230
+ # should add them to the navigational formats lists.
231
+ #
232
+ # The "*/*" below is required to match Internet Explorer requests.
233
+ # config.navigational_formats = ['*/*', :html]
234
+
235
+ # The default HTTP method used to sign out a resource. Default is :delete.
236
+ config.sign_out_via = :delete
237
+
238
+ # ==> OmniAuth
239
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
240
+ # up on your models and hooks.
241
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
242
+
243
+ # ==> Warden configuration
244
+ # If you want to use other strategies, that are not supported by Devise, or
245
+ # change the failure app, you can configure them inside the config.warden block.
246
+ #
247
+ # config.warden do |manager|
248
+ # manager.intercept_401 = false
249
+ # manager.default_strategies(scope: :user).unshift :some_external_strategy
250
+ # end
251
+
252
+ # ==> Mountable engine configurations
253
+ # When using Devise inside an engine, let's call it `MyEngine`, and this engine
254
+ # is mountable, there are some extra configurations to be taken into account.
255
+ # The following options are available, assuming the engine is mounted as:
256
+ #
257
+ # mount MyEngine, at: '/my_engine'
258
+ #
259
+ # The router that invoked `devise_for`, in the example above, would be:
260
+ # config.router_name = :my_engine
261
+ #
262
+ # When using OmniAuth, Devise cannot automatically set OmniAuth path,
263
+ # so you need to do it manually. For the users scope, it would be:
264
+ # config.omniauth_path_prefix = '/my_engine/users/auth'
265
+ end