optimacms_options 0.0.6 → 0.0.7

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 (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,14 +1,14 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
- end
10
-
11
- # To enable root element in JSON for ActiveRecord objects.
12
- # ActiveSupport.on_load(:active_record) do
13
- # self.include_root_in_json = true
14
- # end
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -1,62 +1,62 @@
1
- # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
-
3
- en:
4
- devise:
5
- confirmations:
6
- confirmed: "Your email address has been successfully confirmed."
7
- send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
- send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
- failure:
10
- already_authenticated: "You are already signed in."
11
- inactive: "Your account is not activated yet."
12
- invalid: "Invalid %{authentication_keys} or password."
13
- locked: "Your account is locked."
14
- last_attempt: "You have one more attempt before your account is locked."
15
- not_found_in_database: "Invalid %{authentication_keys} or password."
16
- timeout: "Your session expired. Please sign in again to continue."
17
- unauthenticated: "You need to sign in or sign up before continuing."
18
- unconfirmed: "You have to confirm your email address before continuing."
19
- mailer:
20
- confirmation_instructions:
21
- subject: "Confirmation instructions"
22
- reset_password_instructions:
23
- subject: "Reset password instructions"
24
- unlock_instructions:
25
- subject: "Unlock instructions"
26
- password_change:
27
- subject: "Password Changed"
28
- omniauth_callbacks:
29
- failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
30
- success: "Successfully authenticated from %{kind} account."
31
- passwords:
32
- no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
- send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
34
- send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
35
- updated: "Your password has been changed successfully. You are now signed in."
36
- updated_not_active: "Your password has been changed successfully."
37
- registrations:
38
- destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
39
- signed_up: "Welcome! You have signed up successfully."
40
- signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
41
- signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
42
- signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
43
- update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
44
- updated: "Your account has been updated successfully."
45
- sessions:
46
- signed_in: "Signed in successfully."
47
- signed_out: "Signed out successfully."
48
- already_signed_out: "Signed out successfully."
49
- unlocks:
50
- send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
51
- send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
52
- unlocked: "Your account has been unlocked successfully. Please sign in to continue."
53
- errors:
54
- messages:
55
- already_confirmed: "was already confirmed, please try signing in"
56
- confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
57
- expired: "has expired, please request a new one"
58
- not_found: "not found"
59
- not_locked: "was not locked"
60
- not_saved:
61
- one: "1 error prohibited this %{resource} from being saved:"
62
- other: "%{count} errors prohibited this %{resource} from being saved:"
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ devise:
5
+ confirmations:
6
+ confirmed: "Your email address has been successfully confirmed."
7
+ send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
8
+ send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
9
+ failure:
10
+ already_authenticated: "You are already signed in."
11
+ inactive: "Your account is not activated yet."
12
+ invalid: "Invalid %{authentication_keys} or password."
13
+ locked: "Your account is locked."
14
+ last_attempt: "You have one more attempt before your account is locked."
15
+ not_found_in_database: "Invalid %{authentication_keys} or password."
16
+ timeout: "Your session expired. Please sign in again to continue."
17
+ unauthenticated: "You need to sign in or sign up before continuing."
18
+ unconfirmed: "You have to confirm your email address before continuing."
19
+ mailer:
20
+ confirmation_instructions:
21
+ subject: "Confirmation instructions"
22
+ reset_password_instructions:
23
+ subject: "Reset password instructions"
24
+ unlock_instructions:
25
+ subject: "Unlock instructions"
26
+ password_change:
27
+ subject: "Password Changed"
28
+ omniauth_callbacks:
29
+ failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
30
+ success: "Successfully authenticated from %{kind} account."
31
+ passwords:
32
+ no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
33
+ send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
34
+ send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
35
+ updated: "Your password has been changed successfully. You are now signed in."
36
+ updated_not_active: "Your password has been changed successfully."
37
+ registrations:
38
+ destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
39
+ signed_up: "Welcome! You have signed up successfully."
40
+ signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
41
+ signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
42
+ signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
43
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
44
+ updated: "Your account has been updated successfully."
45
+ sessions:
46
+ signed_in: "Signed in successfully."
47
+ signed_out: "Signed out successfully."
48
+ already_signed_out: "Signed out successfully."
49
+ unlocks:
50
+ send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
51
+ send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
52
+ unlocked: "Your account has been unlocked successfully. Please sign in to continue."
53
+ errors:
54
+ messages:
55
+ already_confirmed: "was already confirmed, please try signing in"
56
+ confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
57
+ expired: "has expired, please request a new one"
58
+ not_found: "not found"
59
+ not_locked: "was not locked"
60
+ not_saved:
61
+ one: "1 error prohibited this %{resource} from being saved:"
62
+ other: "%{count} errors prohibited this %{resource} from being saved:"
@@ -1,23 +1,23 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -1,18 +1,18 @@
1
- Rails.application.routes.draw do
2
-
3
- # optimacms devise
4
- devise_for :cms_admin_users, Optimacms::Devise.config
5
-
6
-
7
- get 'debug/:action', to: 'debug#action'
8
-
9
-
10
- # for names
11
- root to: "home#index"
12
-
13
-
14
- mount OptimacmsOptions::Engine => "/", :as => 'cms_options'
15
-
16
- # !!! LAST row
17
- mount Optimacms::Engine => "/", :as => "cms"
18
- end
1
+ Rails.application.routes.draw do
2
+
3
+ # optimacms devise
4
+ devise_for :cms_admin_users, Optimacms::Devise.config
5
+
6
+
7
+ get 'debug/:action', to: 'debug#action'
8
+
9
+
10
+ # for names
11
+ root to: "home#index"
12
+
13
+
14
+ mount OptimacmsOptions::Engine => "/", :as => 'cms_options'
15
+
16
+ # !!! LAST row
17
+ mount Optimacms::Engine => "/", :as => "cms"
18
+ end
@@ -1,25 +1,25 @@
1
-
2
- development:
3
- secret_key_base: 3f5c09bff16d08becae9ddfca70904fc749138841f198f3652d9b9ddf381ada790d41189391b4c502c4b38842512bdd8b724f63ade94eedd9d508a23d26f7074
4
- devise_secret_key: 3f5c09bff16d08becae9ddfca70904fc749ae9ddfca70904fc749138841f198f3652d9b9ddf3
5
-
6
- db: my_cms_module_options
7
- db_host: localhost
8
- db_user: root
9
- db_password:
10
-
11
-
12
-
13
-
14
- test:
15
- secret_key_base: 54d79471ce5126dd3e4a87d164b7ace07ab924e582fd1b951648696bdf59b2937798ef1bbf30ce96b9a3802c3e9b41eaf918d5a6244abfd825b69ab326b31bcf
16
- devise_secret_key: fd8fc1eea297c4f9b475891fb7c9c215ddb796e9ac3f33620ddd774552b58eee2cad21e4a8d15b80b5526b4f60b032e2c8f086e8d263167185cd1e6bfcb687dd
17
-
18
- db: my_cms_module_options_test
19
- db_host: localhost
20
- db_user: root
21
- db_password:
22
-
23
-
24
-
25
-
1
+
2
+ development:
3
+ secret_key_base: 3f5c09bff16d08becae9ddfca70904fc749138841f198f3652d9b9ddf381ada790d41189391b4c502c4b38842512bdd8b724f63ade94eedd9d508a23d26f7074
4
+ devise_secret_key: 3f5c09bff16d08becae9ddfca70904fc749ae9ddfca70904fc749138841f198f3652d9b9ddf3
5
+
6
+ db: my_cms_module_options
7
+ db_host: localhost
8
+ db_user: root
9
+ db_password:
10
+
11
+
12
+
13
+
14
+ test:
15
+ secret_key_base: 54d79471ce5126dd3e4a87d164b7ace07ab924e582fd1b951648696bdf59b2937798ef1bbf30ce96b9a3802c3e9b41eaf918d5a6244abfd825b69ab326b31bcf
16
+ devise_secret_key: fd8fc1eea297c4f9b475891fb7c9c215ddb796e9ac3f33620ddd774552b58eee2cad21e4a8d15b80b5526b4f60b032e2c8f086e8d263167185cd1e6bfcb687dd
17
+
18
+ db: my_cms_module_options_test
19
+ db_host: localhost
20
+ db_user: root
21
+ db_password:
22
+
23
+
24
+
25
+
@@ -1,176 +1,176 @@
1
- # encoding: UTF-8
2
- # This file is auto-generated from the current state of the database. Instead
3
- # of editing this file, please use the migrations feature of Active Record to
4
- # incrementally modify your database, and then regenerate this schema definition.
5
- #
6
- # Note that this schema.rb definition is the authoritative source for your
7
- # database schema. If you need to create the application database on another
8
- # system, you should be using db:schema:load, not running all the migrations
9
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
- # you'll amass, the slower it'll run and the greater likelihood for issues).
11
- #
12
- # It's strongly recommended that you check this file into your version control system.
13
-
14
- ActiveRecord::Schema.define(version: 20160604135417) do
15
-
16
- create_table "cms_languages", force: :cascade do |t|
17
- t.string "title", limit: 250
18
- t.string "lang", limit: 4
19
- t.boolean "enabled", default: true, null: false
20
- t.string "charset", limit: 15, default: "utf8_unicode_ci", null: false
21
- t.string "locale", limit: 255, null: false
22
- t.string "lang_html", limit: 10, null: false
23
- t.integer "pos", limit: 4, null: false
24
- t.string "countries", limit: 255, null: false
25
- end
26
-
27
- add_index "cms_languages", ["lang"], name: "idxLang", unique: true, using: :btree
28
-
29
- create_table "cms_mediafiles", force: :cascade do |t|
30
- t.integer "media_type", limit: 4
31
- t.string "path", limit: 255
32
- t.string "photo_file_name", limit: 255
33
- t.string "photo_content_type", limit: 255
34
- t.integer "photo_file_size", limit: 4
35
- t.datetime "photo_updated_at"
36
- end
37
-
38
- create_table "cms_pages", force: :cascade do |t|
39
- t.string "title", limit: 255, null: false
40
- t.string "name", limit: 255
41
- t.string "url", limit: 255
42
- t.integer "url_parts_count", limit: 1, default: 0, null: false
43
- t.integer "url_vars_count", limit: 1, default: 0, null: false
44
- t.string "parsed_url", limit: 255
45
- t.integer "parent_id", limit: 4, default: 0, null: false
46
- t.string "view_path", limit: 255
47
- t.boolean "is_translated", default: false, null: false
48
- t.integer "status", limit: 4, default: 0, null: false
49
- t.integer "pos", limit: 4, default: 0, null: false
50
- t.string "redir_url", limit: 255
51
- t.integer "template_id", limit: 4
52
- t.integer "layout_id", limit: 4
53
- t.integer "owner", limit: 4
54
- t.boolean "is_folder", default: false, null: false
55
- t.string "controller_action", limit: 255
56
- t.datetime "created_at", null: false
57
- t.datetime "updated_at", null: false
58
- t.integer "enabled", limit: 1, default: 1, null: false
59
- end
60
-
61
- add_index "cms_pages", ["name"], name: "index_cms_pages_on_name", using: :btree
62
- add_index "cms_pages", ["parent_id"], name: "parent_id", using: :btree
63
- add_index "cms_pages", ["status"], name: "status", using: :btree
64
- add_index "cms_pages", ["url"], name: "url", using: :btree
65
-
66
- create_table "cms_pages_translation", force: :cascade do |t|
67
- t.integer "item_id", limit: 4, default: 0, null: false
68
- t.integer "page_id", limit: 4
69
- t.string "lang", limit: 5, null: false
70
- t.string "meta_title", limit: 255
71
- t.text "meta_description", limit: 65535
72
- t.string "meta_keywords", limit: 255
73
- t.string "template_filename", limit: 255
74
- end
75
-
76
- add_index "cms_pages_translation", ["item_id"], name: "item_id", using: :btree
77
- add_index "cms_pages_translation", ["lang"], name: "lang", using: :btree
78
- add_index "cms_pages_translation", ["template_filename"], name: "template", using: :btree
79
-
80
- create_table "cms_templates", force: :cascade do |t|
81
- t.string "title", limit: 255, null: false
82
- t.string "name", limit: 255
83
- t.string "basename", limit: 255, null: false
84
- t.string "basepath", limit: 255, null: false
85
- t.string "basedirpath", limit: 255, null: false
86
- t.integer "type_id", limit: 1
87
- t.string "tpl_format", limit: 255
88
- t.integer "pos", limit: 4
89
- t.boolean "is_translated", default: false, null: false
90
- t.datetime "created_at", null: false
91
- t.datetime "updated_at", null: false
92
- t.boolean "is_folder", default: false, null: false
93
- t.boolean "enabled", default: true, null: false
94
- t.string "ancestry", limit: 255
95
- end
96
-
97
- add_index "cms_templates", ["ancestry"], name: "ancestry", using: :btree
98
- add_index "cms_templates", ["basepath"], name: "basepath", using: :btree
99
- add_index "cms_templates", ["pos"], name: "pos", using: :btree
100
-
101
- create_table "cms_templates_translation", force: :cascade do |t|
102
- t.integer "item_id", limit: 4, null: false
103
- t.string "lang", limit: 5, null: false
104
- end
105
-
106
- add_index "cms_templates_translation", ["item_id", "lang"], name: "item_id", unique: true, using: :btree
107
-
108
- create_table "cms_templatetypes", force: :cascade do |t|
109
- t.string "name", limit: 255
110
- t.string "title", limit: 255
111
- t.integer "pos", limit: 4, null: false
112
- end
113
-
114
- create_table "cms_users", force: :cascade do |t|
115
- t.string "email", limit: 255, default: "", null: false
116
- t.string "encrypted_password", limit: 255, default: "", null: false
117
- t.string "reset_password_token", limit: 255
118
- t.datetime "reset_password_sent_at"
119
- t.datetime "remember_created_at"
120
- t.integer "sign_in_count", limit: 4, default: 0, null: false
121
- t.datetime "current_sign_in_at"
122
- t.datetime "last_sign_in_at"
123
- t.string "current_sign_in_ip", limit: 255
124
- t.string "last_sign_in_ip", limit: 255
125
- t.datetime "created_at"
126
- t.datetime "updated_at"
127
- end
128
-
129
- add_index "cms_users", ["email"], name: "index_optimacms_cms_users_on_email", unique: true, using: :btree
130
- add_index "cms_users", ["reset_password_token"], name: "index_optimacms_cms_users_on_reset_password_token", unique: true, using: :btree
131
-
132
- create_table "news", force: :cascade do |t|
133
- t.string "title", limit: 255
134
- t.text "description", limit: 65535
135
- t.datetime "created_at", null: false
136
- t.datetime "updated_at", null: false
137
- end
138
-
139
- create_table "optimacms_articles", force: :cascade do |t|
140
- t.string "title", limit: 255
141
- t.text "text", limit: 65535
142
- t.datetime "created_at", null: false
143
- t.datetime "updated_at", null: false
144
- end
145
-
146
- create_table "options", force: :cascade do |t|
147
- t.string "name", limit: 255, null: false
148
- t.string "title", limit: 255, null: false
149
- t.string "option_type", limit: 255
150
- t.text "description", limit: 65535
151
- t.boolean "is_changed", default: true, null: false
152
- t.string "category", limit: 255
153
- t.string "value", limit: 255
154
- end
155
-
156
- add_index "options", ["name"], name: "index_options_on_name", unique: true, using: :btree
157
-
158
- create_table "users", force: :cascade do |t|
159
- t.string "email", limit: 255, default: "", null: false
160
- t.string "encrypted_password", limit: 255, default: "", null: false
161
- t.string "reset_password_token", limit: 255
162
- t.datetime "reset_password_sent_at"
163
- t.datetime "remember_created_at"
164
- t.integer "sign_in_count", limit: 4, default: 0, null: false
165
- t.datetime "current_sign_in_at"
166
- t.datetime "last_sign_in_at"
167
- t.string "current_sign_in_ip", limit: 255
168
- t.string "last_sign_in_ip", limit: 255
169
- t.datetime "created_at"
170
- t.datetime "updated_at"
171
- end
172
-
173
- add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
174
- add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
175
-
176
- end
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20160604135417) do
15
+
16
+ create_table "cms_languages", force: :cascade do |t|
17
+ t.string "title", limit: 250
18
+ t.string "lang", limit: 4
19
+ t.boolean "enabled", default: true, null: false
20
+ t.string "charset", limit: 15, default: "utf8_unicode_ci", null: false
21
+ t.string "locale", limit: 255, null: false
22
+ t.string "lang_html", limit: 10, null: false
23
+ t.integer "pos", limit: 4, null: false
24
+ t.string "countries", limit: 255, null: false
25
+ end
26
+
27
+ add_index "cms_languages", ["lang"], name: "idxLang", unique: true, using: :btree
28
+
29
+ create_table "cms_mediafiles", force: :cascade do |t|
30
+ t.integer "media_type", limit: 4
31
+ t.string "path", limit: 255
32
+ t.string "photo_file_name", limit: 255
33
+ t.string "photo_content_type", limit: 255
34
+ t.integer "photo_file_size", limit: 4
35
+ t.datetime "photo_updated_at"
36
+ end
37
+
38
+ create_table "cms_pages", force: :cascade do |t|
39
+ t.string "title", limit: 255, null: false
40
+ t.string "name", limit: 255
41
+ t.string "url", limit: 255
42
+ t.integer "url_parts_count", limit: 1, default: 0, null: false
43
+ t.integer "url_vars_count", limit: 1, default: 0, null: false
44
+ t.string "parsed_url", limit: 255
45
+ t.integer "parent_id", limit: 4, default: 0, null: false
46
+ t.string "view_path", limit: 255
47
+ t.boolean "is_translated", default: false, null: false
48
+ t.integer "status", limit: 4, default: 0, null: false
49
+ t.integer "pos", limit: 4, default: 0, null: false
50
+ t.string "redir_url", limit: 255
51
+ t.integer "template_id", limit: 4
52
+ t.integer "layout_id", limit: 4
53
+ t.integer "owner", limit: 4
54
+ t.boolean "is_folder", default: false, null: false
55
+ t.string "controller_action", limit: 255
56
+ t.datetime "created_at", null: false
57
+ t.datetime "updated_at", null: false
58
+ t.integer "enabled", limit: 1, default: 1, null: false
59
+ end
60
+
61
+ add_index "cms_pages", ["name"], name: "index_cms_pages_on_name", using: :btree
62
+ add_index "cms_pages", ["parent_id"], name: "parent_id", using: :btree
63
+ add_index "cms_pages", ["status"], name: "status", using: :btree
64
+ add_index "cms_pages", ["url"], name: "url", using: :btree
65
+
66
+ create_table "cms_pages_translation", force: :cascade do |t|
67
+ t.integer "item_id", limit: 4, default: 0, null: false
68
+ t.integer "page_id", limit: 4
69
+ t.string "lang", limit: 5, null: false
70
+ t.string "meta_title", limit: 255
71
+ t.text "meta_description", limit: 65535
72
+ t.string "meta_keywords", limit: 255
73
+ t.string "template_filename", limit: 255
74
+ end
75
+
76
+ add_index "cms_pages_translation", ["item_id"], name: "item_id", using: :btree
77
+ add_index "cms_pages_translation", ["lang"], name: "lang", using: :btree
78
+ add_index "cms_pages_translation", ["template_filename"], name: "template", using: :btree
79
+
80
+ create_table "cms_templates", force: :cascade do |t|
81
+ t.string "title", limit: 255, null: false
82
+ t.string "name", limit: 255
83
+ t.string "basename", limit: 255, null: false
84
+ t.string "basepath", limit: 255, null: false
85
+ t.string "basedirpath", limit: 255, null: false
86
+ t.integer "type_id", limit: 1
87
+ t.string "tpl_format", limit: 255
88
+ t.integer "pos", limit: 4
89
+ t.boolean "is_translated", default: false, null: false
90
+ t.datetime "created_at", null: false
91
+ t.datetime "updated_at", null: false
92
+ t.boolean "is_folder", default: false, null: false
93
+ t.boolean "enabled", default: true, null: false
94
+ t.string "ancestry", limit: 255
95
+ end
96
+
97
+ add_index "cms_templates", ["ancestry"], name: "ancestry", using: :btree
98
+ add_index "cms_templates", ["basepath"], name: "basepath", using: :btree
99
+ add_index "cms_templates", ["pos"], name: "pos", using: :btree
100
+
101
+ create_table "cms_templates_translation", force: :cascade do |t|
102
+ t.integer "item_id", limit: 4, null: false
103
+ t.string "lang", limit: 5, null: false
104
+ end
105
+
106
+ add_index "cms_templates_translation", ["item_id", "lang"], name: "item_id", unique: true, using: :btree
107
+
108
+ create_table "cms_templatetypes", force: :cascade do |t|
109
+ t.string "name", limit: 255
110
+ t.string "title", limit: 255
111
+ t.integer "pos", limit: 4, null: false
112
+ end
113
+
114
+ create_table "cms_users", force: :cascade do |t|
115
+ t.string "email", limit: 255, default: "", null: false
116
+ t.string "encrypted_password", limit: 255, default: "", null: false
117
+ t.string "reset_password_token", limit: 255
118
+ t.datetime "reset_password_sent_at"
119
+ t.datetime "remember_created_at"
120
+ t.integer "sign_in_count", limit: 4, default: 0, null: false
121
+ t.datetime "current_sign_in_at"
122
+ t.datetime "last_sign_in_at"
123
+ t.string "current_sign_in_ip", limit: 255
124
+ t.string "last_sign_in_ip", limit: 255
125
+ t.datetime "created_at"
126
+ t.datetime "updated_at"
127
+ end
128
+
129
+ add_index "cms_users", ["email"], name: "index_optimacms_cms_users_on_email", unique: true, using: :btree
130
+ add_index "cms_users", ["reset_password_token"], name: "index_optimacms_cms_users_on_reset_password_token", unique: true, using: :btree
131
+
132
+ create_table "news", force: :cascade do |t|
133
+ t.string "title", limit: 255
134
+ t.text "description", limit: 65535
135
+ t.datetime "created_at", null: false
136
+ t.datetime "updated_at", null: false
137
+ end
138
+
139
+ create_table "optimacms_articles", force: :cascade do |t|
140
+ t.string "title", limit: 255
141
+ t.text "text", limit: 65535
142
+ t.datetime "created_at", null: false
143
+ t.datetime "updated_at", null: false
144
+ end
145
+
146
+ create_table "options", force: :cascade do |t|
147
+ t.string "name", limit: 255, null: false
148
+ t.string "title", limit: 255, null: false
149
+ t.string "option_type", limit: 255
150
+ t.text "description", limit: 65535
151
+ t.boolean "is_changed", default: true, null: false
152
+ t.string "category", limit: 255
153
+ t.string "value", limit: 255
154
+ end
155
+
156
+ add_index "options", ["name"], name: "index_options_on_name", unique: true, using: :btree
157
+
158
+ create_table "users", force: :cascade do |t|
159
+ t.string "email", limit: 255, default: "", null: false
160
+ t.string "encrypted_password", limit: 255, default: "", null: false
161
+ t.string "reset_password_token", limit: 255
162
+ t.datetime "reset_password_sent_at"
163
+ t.datetime "remember_created_at"
164
+ t.integer "sign_in_count", limit: 4, default: 0, null: false
165
+ t.datetime "current_sign_in_at"
166
+ t.datetime "last_sign_in_at"
167
+ t.string "current_sign_in_ip", limit: 255
168
+ t.string "last_sign_in_ip", limit: 255
169
+ t.datetime "created_at"
170
+ t.datetime "updated_at"
171
+ end
172
+
173
+ add_index "users", ["email"], name: "index_users_on_email", unique: true, using: :btree
174
+ add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true, using: :btree
175
+
176
+ end