ab_admin 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/{LICENSE.txt → MIT-LICENSE} +2 -4
- data/README.md +3 -3
- data/Rakefile +21 -3
- data/app/assets/images/admin/flags/b_de.png +0 -0
- data/app/assets/images/admin/flags/b_es.png +0 -0
- data/app/assets/images/admin/flags/b_fr.png +0 -0
- data/app/assets/images/admin/flags/flag_de.gif +0 -0
- data/app/assets/images/admin/flags/flag_de_nonact.gif +0 -0
- data/app/assets/images/admin/flags/flag_es.gif +0 -0
- data/app/assets/images/admin/flags/flag_es_nonact.gif +0 -0
- data/app/assets/images/admin/flags/flag_fr.gif +0 -0
- data/app/assets/images/admin/flags/flag_fr_nonact.gif +0 -0
- data/app/assets/javascripts/ab_admin/components/admin_assets.js.coffee +50 -60
- data/app/assets/javascripts/ab_admin/components/base_assets.js.coffee +86 -0
- data/app/assets/javascripts/ab_admin/components/croppable_image.js.coffee +4 -4
- data/app/assets/javascripts/ab_admin/components/gmaps.js.coffee +5 -0
- data/app/assets/javascripts/ab_admin/components/google_translate.js.coffee +0 -1
- data/app/assets/javascripts/ab_admin/components/in_place_edit.js.coffee +7 -3
- data/app/assets/javascripts/ab_admin/components/locator.js.coffee +1 -1
- data/app/assets/javascripts/ab_admin/components/select2_bridge.js.coffee +152 -0
- data/app/assets/javascripts/ab_admin/components/sortable_tree.js.coffee +1 -1
- data/app/assets/javascripts/ab_admin/core/batch_actions.js.coffee +5 -4
- data/app/assets/javascripts/ab_admin/core/columns_hider.js.coffee +4 -11
- data/app/assets/javascripts/ab_admin/core/confirmation.js.coffee +4 -43
- data/app/assets/javascripts/ab_admin/core/deprecated_utils.js.coffee +44 -0
- data/app/assets/javascripts/ab_admin/core/init.js.coffee +8 -25
- data/app/assets/javascripts/ab_admin/core/pjax.js.coffee +18 -4
- data/app/assets/javascripts/ab_admin/core/search_form.js.coffee +5 -5
- data/app/assets/javascripts/ab_admin/core/ui_utils.js.coffee +15 -86
- data/app/assets/javascripts/ab_admin/core/utils.js.coffee +38 -51
- data/app/assets/javascripts/ab_admin/core/view_layout.js.coffee +1 -1
- data/app/assets/javascripts/ab_admin/inputs/datetime_input.js.coffee +16 -18
- data/app/assets/javascripts/ab_admin/main.js +7 -7
- data/app/assets/stylesheets/ab_admin/bootstrap_and_overrides.css.scss +21 -8
- data/app/assets/stylesheets/ab_admin/components/_admin_comments.css.scss +17 -5
- data/app/assets/stylesheets/ab_admin/components/_base.css.scss +4 -0
- data/app/assets/stylesheets/ab_admin/components/_colored_tabs.css.scss +1 -4
- data/app/assets/stylesheets/ab_admin/components/_columns_hider.css.scss +5 -0
- data/app/assets/stylesheets/ab_admin/components/_form.css.scss +45 -16
- data/app/assets/stylesheets/ab_admin/components/_grid_view.css.scss +11 -0
- data/app/assets/stylesheets/ab_admin/components/_locale_tabs.css.scss +1 -1
- data/app/assets/stylesheets/ab_admin/components/_navigation.css.scss +11 -9
- data/app/assets/stylesheets/ab_admin/components/_table_view.css.scss +1 -1
- data/app/assets/stylesheets/ab_admin/components/_translations.css.scss +1 -0
- data/app/assets/stylesheets/ab_admin/components/{_sortable_tree.css.scss → _tree_view.css.scss} +8 -3
- data/app/assets/stylesheets/ab_admin/fileupload.css.scss +51 -43
- data/app/assets/stylesheets/ab_admin/main.css.scss +1 -3
- data/app/controllers/admin/admin_comments_controller.rb +14 -4
- data/app/controllers/admin/assets_controller.rb +44 -35
- data/app/controllers/admin/base_controller.rb +93 -38
- data/app/controllers/admin/locators_controller.rb +3 -2
- data/app/controllers/admin/manager_controller.rb +20 -9
- data/app/controllers/admin/structures_controller.rb +9 -1
- data/app/controllers/admin/users_controller.rb +1 -2
- data/app/views/ab_admin/devise/sessions/new.html.slim +1 -1
- data/app/views/admin/admin_comments/_comment.html.slim +21 -7
- data/app/views/admin/admin_comments/_comments.html.slim +1 -1
- data/app/views/admin/admin_comments/_form.html.slim +8 -3
- data/app/views/admin/admin_comments/_list_block.html.slim +7 -0
- data/app/views/admin/admin_comments/create.js.erb +3 -2
- data/app/views/admin/admin_comments/destroy.js.erb +1 -1
- data/app/views/admin/admin_comments/index.js.erb +14 -0
- data/app/views/admin/assets/batch_edit.html.slim +14 -0
- data/app/views/admin/base/_modal_form_layout.html.slim +12 -0
- data/app/views/admin/base/_search_layout.html.slim +4 -3
- data/app/views/admin/base/_table.html.slim +2 -2
- data/app/views/admin/base/create.js.erb +13 -8
- data/app/views/admin/base/history.html.slim +18 -0
- data/app/views/admin/base/index.html.slim +3 -3
- data/app/views/admin/base/new.js.erb +14 -8
- data/app/views/admin/base/show.html.slim +1 -2
- data/app/views/admin/base/show.js.erb +7 -0
- data/app/views/admin/fileupload/_asset_templates.html.slim +29 -0
- data/app/views/admin/fileupload/_container.html.slim +13 -12
- data/app/views/admin/fileupload/_file.html.slim +2 -2
- data/app/views/admin/fileupload/_image.html.slim +8 -0
- data/app/views/admin/fileupload/_video.html.slim +2 -2
- data/app/views/admin/headers/_form.html.slim +2 -0
- data/app/views/admin/locators/edit.html.slim +1 -1
- data/app/views/admin/locators/show.html.slim +1 -2
- data/app/views/admin/manager/_form.html.slim +17 -3
- data/app/views/admin/manager/_modal_form.html.slim +19 -0
- data/app/views/admin/manager/_table.html.slim +3 -3
- data/app/views/admin/manager/show.html.slim +1 -0
- data/app/views/admin/shared/_content_actions.html.slim +39 -0
- data/app/views/admin/shared/_locale_tabs.html.slim +3 -3
- data/app/views/admin/shared/inputs/_checkbox_tree.html.slim +9 -3
- data/app/views/admin/structures/_form.html.slim +4 -7
- data/app/views/admin/users/_form.html.slim +2 -4
- data/app/views/admin/users/_search_form.html.slim +0 -1
- data/app/views/admin/users/_table.html.slim +8 -10
- data/app/views/layouts/admin/_footer.html.slim +3 -4
- data/app/views/layouts/admin/_navigation.html.slim +2 -2
- data/app/views/layouts/admin/application.html.slim +7 -9
- data/app/views/layouts/admin/devise.html.slim +3 -4
- data/config/locales/de.yml +319 -0
- data/config/locales/en.devise.yml +44 -31
- data/config/locales/en.yml +166 -143
- data/config/locales/it.devise.yml +54 -41
- data/config/locales/it.yml +178 -163
- data/config/locales/ru.devise.yml +70 -56
- data/config/locales/ru.yml +280 -264
- data/config/routes.rb +6 -3
- data/db/migrate/20130101000001_create_users.rb +7 -11
- data/db/migrate/20130101000003_create_assets.rb +5 -5
- data/db/migrate/20130101000004_create_headers.rb +2 -6
- data/db/migrate/20130101000005_create_static_pages.rb +1 -5
- data/db/migrate/20130101000006_create_structures.rb +5 -9
- data/db/migrate/20130101000007_base_translations.rb +3 -1
- data/db/migrate/20130101000008_create_admin_comments.rb +5 -5
- data/db/migrate/20130101000009_create_tracks.rb +20 -0
- data/lib/ab_admin.rb +36 -4
- data/lib/ab_admin/abstract_resource.rb +28 -7
- data/lib/ab_admin/carrierwave/base_uploader.rb +85 -5
- data/lib/ab_admin/carrierwave/glue.rb +6 -1
- data/lib/ab_admin/concerns/admin_addition.rb +26 -9
- data/lib/ab_admin/concerns/asset_human_names.rb +23 -0
- data/lib/ab_admin/concerns/fileuploads.rb +102 -0
- data/lib/ab_admin/concerns/has_tracking.rb +32 -0
- data/lib/ab_admin/concerns/nested_set.rb +9 -9
- data/lib/ab_admin/concerns/silencer.rb +5 -5
- data/lib/ab_admin/concerns/utilities.rb +28 -16
- data/lib/ab_admin/concerns/validations.rb +1 -1
- data/lib/ab_admin/config/base.rb +10 -2
- data/lib/ab_admin/controllers/callbacks.rb +2 -2
- data/lib/ab_admin/controllers/can_can_manager_resource.rb +3 -2
- data/lib/ab_admin/controllers/fv.rb +16 -0
- data/lib/ab_admin/controllers/head_options.rb +6 -4
- data/lib/ab_admin/core_ext/hash.rb +25 -70
- data/lib/ab_admin/core_ext/string.rb +17 -4
- data/lib/ab_admin/engine.rb +2 -8
- data/lib/ab_admin/hooks.rb +8 -3
- data/lib/ab_admin/hooks/active_model_hooks.rb +1 -1
- data/lib/ab_admin/hooks/globalize_hooks.rb +35 -0
- data/lib/ab_admin/hooks/paginate_hooks.rb +3 -1
- data/lib/ab_admin/i18n_tools/model_translator.rb +1 -1
- data/lib/ab_admin/menu/abstract_builder.rb +14 -0
- data/lib/ab_admin/menu/base_group.rb +26 -0
- data/lib/ab_admin/menu/builder.rb +16 -0
- data/lib/ab_admin/menu/group.rb +24 -0
- data/lib/ab_admin/menu/item.rb +23 -0
- data/lib/ab_admin/models/admin_comment.rb +68 -0
- data/lib/ab_admin/models/asset.rb +30 -19
- data/lib/ab_admin/models/attachment_file.rb +2 -1
- data/lib/ab_admin/models/header.rb +15 -0
- data/lib/ab_admin/models/locator.rb +1 -3
- data/lib/ab_admin/models/settings.rb +10 -10
- data/lib/ab_admin/models/structure.rb +20 -9
- data/lib/ab_admin/models/track.rb +61 -0
- data/lib/ab_admin/models/type_model.rb +30 -17
- data/lib/ab_admin/models/user.rb +18 -49
- data/lib/ab_admin/utils.rb +16 -7
- data/lib/ab_admin/utils/logger.rb +11 -7
- data/lib/ab_admin/utils/mysql.rb +10 -0
- data/lib/ab_admin/version.rb +1 -1
- data/lib/ab_admin/views/admin_helpers.rb +20 -9
- data/lib/ab_admin/views/admin_navigation_helpers.rb +44 -21
- data/lib/ab_admin/views/content_only_wrapper.rb +14 -0
- data/lib/ab_admin/views/form_builder.rb +27 -89
- data/lib/ab_admin/views/helpers.rb +1 -28
- data/lib/ab_admin/views/inputs/capture_block_input.rb +16 -0
- data/lib/ab_admin/views/inputs/date_time_picker_input.rb +45 -0
- data/lib/ab_admin/views/inputs/token_input.rb +2 -1
- data/lib/ab_admin/views/inputs/uploader_input.rb +101 -0
- data/lib/ab_admin/views/manager_helpers.rb +12 -0
- data/lib/ab_admin/views/search_form_builder.rb +36 -13
- data/lib/generators/ab_admin/ckeditor_assets/ckeditor_assets_generator.rb +1 -1
- data/lib/generators/ab_admin/install/install_generator.rb +3 -2
- data/lib/generators/ab_admin/install/templates/config/ab_admin.rb.erb +1 -1
- data/lib/generators/ab_admin/install/templates/config/admin_menu.rb +1 -1
- data/lib/generators/ab_admin/install/templates/config/i18n-js.yml +1 -1
- data/lib/generators/ab_admin/install/templates/config/nginx.conf +22 -9
- data/lib/generators/ab_admin/install/templates/config/robots.txt +7 -0
- data/lib/generators/ab_admin/install/templates/config/seeds.rb +2 -1
- data/lib/generators/ab_admin/install/templates/models/ability.rb +2 -7
- data/lib/generators/ab_admin/install/templates/models/admin_comment.rb +3 -28
- data/lib/generators/ab_admin/install/templates/models/asset.rb +4 -2
- data/lib/generators/ab_admin/install/templates/models/attachment_file.rb +1 -1
- data/lib/generators/ab_admin/install/templates/models/avatar.rb +2 -2
- data/lib/generators/ab_admin/install/templates/models/gender_type.rb +1 -1
- data/lib/generators/ab_admin/install/templates/models/header.rb +2 -2
- data/lib/generators/ab_admin/install/templates/models/locator.rb +0 -1
- data/lib/generators/ab_admin/install/templates/models/picture.rb +1 -1
- data/lib/generators/ab_admin/install/templates/models/settings.rb +1 -1
- data/lib/generators/ab_admin/install/templates/models/structure.rb +6 -8
- data/lib/generators/ab_admin/install/templates/models/track.rb +5 -0
- data/lib/generators/ab_admin/install/templates/models/user.rb +2 -3
- data/lib/generators/ab_admin/install/templates/script/unicorn.sh +0 -2
- data/lib/generators/ab_admin/install/templates/spec/factories/user_factory.rb +1 -2
- data/lib/generators/ab_admin/install/templates/uploaders/attachment_file_uploader.rb +1 -1
- data/lib/generators/ab_admin/install/templates/uploaders/avatar_uploader.rb +1 -1
- data/lib/generators/ab_admin/install/templates/uploaders/picture_uploader.rb +1 -1
- data/lib/generators/ab_admin/model/templates/resource.erb +1 -1
- data/lib/generators/ab_admin/resource/templates/_form.slim.erb +49 -45
- data/lib/generators/ab_admin/resource/templates/_table.slim.erb +1 -1
- data/lib/generators/template.rb +32 -56
- data/lib/tasks/assets.rake +1 -0
- metadata +197 -698
- data/.gitignore +0 -41
- data/Gemfile +0 -77
- data/Guardfile +0 -35
- data/TODO +0 -4
- data/ab_admin.gemspec +0 -59
- data/app/views/admin/fileupload/_asset.html.slim +0 -8
- data/app/views/admin/fileupload/_ftmpl.html.slim +0 -6
- data/app/views/admin/fileupload/_tmpl.html.slim +0 -9
- data/app/views/admin/fileupload/_vtmpl.html.slim +0 -10
- data/app/views/admin/shared/_batch_actions.html.slim +0 -27
- data/cucumber.yml +0 -10
- data/features/dsl/action_items.feature +0 -79
- data/features/dsl/admin_comments.feature +0 -30
- data/features/dsl/batch_actions.feature +0 -69
- data/features/dsl/config.feature +0 -44
- data/features/dsl/custom_actions.feature +0 -62
- data/features/dsl/export.feature +0 -42
- data/features/dsl/form.feature +0 -77
- data/features/dsl/in_place_edit.feature +0 -26
- data/features/dsl/list_edit.feature +0 -46
- data/features/dsl/parent_resource.feature +0 -18
- data/features/dsl/resource_action_items.feature +0 -40
- data/features/dsl/search.feature +0 -41
- data/features/dsl/show.feature +0 -37
- data/features/dsl/table.feature +0 -71
- data/features/dsl/tree.feature +0 -37
- data/features/index_views/table.feature +0 -20
- data/features/locators.feature +0 -40
- data/features/menu.feature +0 -35
- data/features/settings.feature +0 -36
- data/features/step_definitions/configuration_steps.rb +0 -94
- data/features/step_definitions/dsl/action_items_steps.rb +0 -13
- data/features/step_definitions/dsl/admin_comments_steps.rb +0 -12
- data/features/step_definitions/dsl/batch_actions_steps.rb +0 -27
- data/features/step_definitions/dsl/in_place_edit_steps.rb +0 -7
- data/features/step_definitions/dsl/parent_resource_steps.rb +0 -8
- data/features/step_definitions/dsl/resource_action_items_steps.rb +0 -14
- data/features/step_definitions/dsl/show_steps.rb +0 -8
- data/features/step_definitions/dsl/table_steps.rb +0 -38
- data/features/step_definitions/dsl/tree_steps.rb +0 -28
- data/features/step_definitions/menu_steps.rb +0 -20
- data/features/step_definitions/settings_steps.rb +0 -7
- data/features/step_definitions/structure_steps.rb +0 -7
- data/features/step_definitions/table_steps.rb +0 -23
- data/features/step_definitions/user_steps.rb +0 -72
- data/features/step_definitions/web_steps/browsing_steps.rb +0 -108
- data/features/step_definitions/web_steps/debug_steps.rb +0 -6
- data/features/step_definitions/web_steps/form_steps.rb +0 -190
- data/features/step_definitions/web_steps/i18n_steps.rb +0 -8
- data/features/step_definitions/web_steps/step_scoper.rb +0 -9
- data/features/step_definitions/web_steps/transforms_steps.rb +0 -3
- data/features/structure/tree.feature +0 -21
- data/features/support/capybara_helpers.rb +0 -15
- data/features/support/carrierwave.rb +0 -21
- data/features/support/env.rb +0 -40
- data/features/support/paths.rb +0 -55
- data/features/support/selector_helpers.rb +0 -9
- data/features/support/selectors.rb +0 -43
- data/features/support/tolerance_for_selenium_sync_issues.rb +0 -27
- data/features/user/sign_in.feature +0 -27
- data/features/user/sign_out.feature +0 -11
- data/features/user/user_edit.feature +0 -19
- data/features/user/user_show.feature +0 -9
- data/lib/ab_admin/hooks/quiet_scope_page.rb +0 -16
- data/lib/ab_admin/hooks/simple_form_hooks.rb +0 -31
- data/lib/ab_admin/menu_builder.rb +0 -89
- data/lib/ab_admin/views/inputs/date_time_input.rb +0 -65
- data/lib/generators/ab_admin/install/templates/models/user_state.rb +0 -6
- data/lib/generators/ab_admin/resource/templates/_form.haml.erb +0 -71
- data/lib/generators/ab_admin/resource/templates/_search_form.haml.erb +0 -35
- data/lib/generators/ab_admin/resource/templates/_table.haml.erb +0 -33
- data/spec/ab_admin_spec.rb +0 -23
- data/spec/dummy/Rakefile +0 -7
- data/spec/dummy/app/assets/images/rails.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +0 -15
- data/spec/dummy/app/assets/stylesheets/application.css +0 -13
- data/spec/dummy/app/controllers/application_controller.rb +0 -3
- data/spec/dummy/app/controllers/products_controller.rb +0 -5
- data/spec/dummy/app/controllers/welcome_controller.rb +0 -5
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/ab_admin/ab_admin_catalogue.rb +0 -5
- data/spec/dummy/app/models/ab_admin/ab_admin_collection.rb +0 -35
- data/spec/dummy/app/models/ab_admin/ab_admin_product.rb +0 -74
- data/spec/dummy/app/models/admin_menu.rb +0 -18
- data/spec/dummy/app/models/catalogue.rb +0 -10
- data/spec/dummy/app/models/ckeditor/asset.rb +0 -7
- data/spec/dummy/app/models/ckeditor/attachment_file.rb +0 -7
- data/spec/dummy/app/models/ckeditor/picture.rb +0 -7
- data/spec/dummy/app/models/collection.rb +0 -20
- data/spec/dummy/app/models/product.rb +0 -32
- data/spec/dummy/app/uploaders/ckeditor_attachment_file_uploader.rb +0 -42
- data/spec/dummy/app/uploaders/ckeditor_picture_uploader.rb +0 -53
- data/spec/dummy/app/views/admin/collections/_form.html.slim +0 -24
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/app/views/products/show.html.erb +0 -2
- data/spec/dummy/app/views/welcome/index.html.erb +0 -2
- data/spec/dummy/config.ru +0 -4
- data/spec/dummy/config/application.rb +0 -82
- data/spec/dummy/config/boot.rb +0 -10
- data/spec/dummy/config/database.yml +0 -26
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -37
- data/spec/dummy/config/environments/production.rb +0 -67
- data/spec/dummy/config/environments/test.rb +0 -37
- data/spec/dummy/config/i18n-js.yml +0 -21
- data/spec/dummy/config/initializers/ab_admin.rb +0 -15
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/ckeditor.rb +0 -18
- data/spec/dummy/config/initializers/devise.rb +0 -232
- data/spec/dummy/config/initializers/inflections.rb +0 -15
- data/spec/dummy/config/initializers/mime_types.rb +0 -5
- data/spec/dummy/config/initializers/secret_token.rb +0 -7
- data/spec/dummy/config/initializers/session_store.rb +0 -8
- data/spec/dummy/config/initializers/simple_form.rb +0 -142
- data/spec/dummy/config/initializers/simple_form_bootstrap.rb +0 -45
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/devise.en.yml +0 -60
- data/spec/dummy/config/locales/en.yml +0 -5
- data/spec/dummy/config/locales/simple_form.en.yml +0 -26
- data/spec/dummy/config/routes.rb +0 -14
- data/spec/dummy/config/settings/development.local.yml +0 -9
- data/spec/dummy/config/settings/development.yml +0 -7
- data/spec/dummy/db/migrate/20130129151853_create_ckeditor_assets.rb +0 -26
- data/spec/dummy/db/migrate/20130130161853_create_collections.rb +0 -10
- data/spec/dummy/db/migrate/20130130162046_create_products.rb +0 -13
- data/spec/dummy/db/migrate/20130130175446_create_globalize_collection_product.rb +0 -11
- data/spec/dummy/db/migrate/20130207224516_create_catalogues.rb +0 -16
- data/spec/dummy/db/migrate/20130209223506_add_lat_lon_zoom_to_products.rb +0 -7
- data/spec/dummy/db/seeds.rb +0 -46
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/lib/capybara_irb.rb +0 -42
- data/spec/dummy/lib/tasks/.gitkeep +0 -0
- data/spec/dummy/lib/tasks/cucumber.rake +0 -65
- data/spec/dummy/lib/templates/slim/scaffold/_form.html.slim +0 -10
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +0 -26
- data/spec/dummy/public/422.html +0 -26
- data/spec/dummy/public/500.html +0 -25
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/script/cucumber +0 -10
- data/spec/dummy/script/rails +0 -6
- data/spec/factories/assets.rb +0 -52
- data/spec/factories/catalogues.rb +0 -7
- data/spec/factories/collections.rb +0 -8
- data/spec/factories/files/rails.png +0 -0
- data/spec/factories/products.rb +0 -17
- data/spec/factories/sequences.rb +0 -7
- data/spec/factories/structures.rb +0 -17
- data/spec/factories/users.rb +0 -30
- data/spec/generators/ckeditor_assets_generator_spec.rb +0 -19
- data/spec/generators/install_generator_spec.rb +0 -48
- data/spec/generators/model_generator_spec.rb +0 -31
- data/spec/generators/resource_generator_spec.rb +0 -36
- data/spec/models/ab_admin/abstract_resource_spec.rb +0 -5
- data/spec/models/avatar_spec.rb +0 -162
- data/spec/models/picture_uploader_spec.rb +0 -49
- data/spec/models/structure_spec.rb +0 -69
- data/spec/models/user_spec.rb +0 -159
- data/spec/shared_behaviors/concerns.rb +0 -20
- data/spec/spec_helper.rb +0 -96
- data/spec/support/controller_macros.rb +0 -52
- data/spec/support/custom_capybara_matchers.rb +0 -58
- data/spec/support/mailer_macros.rb +0 -17
- data/spec/support/shared_connection.rb +0 -11
- data/vendor/assets/images/ab_admin/clear.png +0 -0
- data/vendor/assets/images/ab_admin/loading.gif +0 -0
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/core.js +0 -899
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/index.js +0 -2
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.bg.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.br.js +0 -13
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.cs.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.da.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.de.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.es.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.fi.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.fr.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.id.js +0 -13
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.is.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.it.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.ja.js +0 -13
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.kr.js +0 -13
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.lt.js +0 -15
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.lv.js +0 -16
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.ms.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.nb.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.nl.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.pl.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.pt-BR.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.pt.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.ro.js +0 -15
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.ru.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.sk.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.sl.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.sv.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.th.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.tr.js +0 -15
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.js +0 -14
- data/vendor/assets/javascripts/ab_admin/bootstrap-datepicker/locales/bootstrap-datepicker.zh-TW.js +0 -13
- data/vendor/assets/javascripts/ab_admin/bootstrap-editable-inline.js +0 -2895
- data/vendor/assets/javascripts/ab_admin/bootstrap-editable.js +0 -4523
- data/vendor/assets/javascripts/ab_admin/bootstrap-tab-multi.js +0 -135
- data/vendor/assets/javascripts/ab_admin/bootstrap-timepicker.js +0 -377
- data/vendor/assets/javascripts/ab_admin/fileupload/admin-fileuploader.js.coffee +0 -111
- data/vendor/assets/javascripts/ab_admin/fileupload/fileuploader.js +0 -1301
- data/vendor/assets/javascripts/ab_admin/jquery.Jcrop.js +0 -1083
- data/vendor/assets/javascripts/ab_admin/jquery_nested_form.js.coffee +0 -66
- data/vendor/assets/javascripts/bootstrap-wysihtml5/locales/ru.js +0 -48
- data/vendor/assets/javascripts/handlebars.min.js +0 -1
- data/vendor/assets/javascripts/jquery.cookie.js +0 -42
- data/vendor/assets/javascripts/jquery.hotkeys.js +0 -106
- data/vendor/assets/javascripts/jquery.pjax.js +0 -688
- data/vendor/assets/javascripts/jquery.tmpl.min.js +0 -10
- data/vendor/assets/javascripts/jquery.ui.nestedSortable.js +0 -356
- data/vendor/assets/javascripts/jquery/jquery-ui.min.js +0 -15
- data/vendor/assets/javascripts/jquery/jquery.min.js +0 -4
- data/vendor/assets/javascripts/underscore.min.js +0 -5
- data/vendor/assets/stylesheets/ab_admin/bootstrap-datepicker.css.scss +0 -274
- data/vendor/assets/stylesheets/ab_admin/bootstrap-editable.scss +0 -461
- data/vendor/assets/stylesheets/ab_admin/bootstrap-timepicker.css.scss +0 -88
- data/vendor/assets/stylesheets/ab_admin/jquery.Jcrop.min.css.scss +0 -28
@@ -1,37 +0,0 @@
|
|
1
|
-
Dummy::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
|
-
# Configure static asset server for tests with Cache-Control for performance
|
11
|
-
config.serve_static_assets = true
|
12
|
-
config.static_cache_control = 'public, max-age=3600'
|
13
|
-
|
14
|
-
# Log error messages when you accidentally call methods on nil
|
15
|
-
config.whiny_nils = true
|
16
|
-
|
17
|
-
# Show full error reports and disable caching
|
18
|
-
config.consider_all_requests_local = true
|
19
|
-
config.action_controller.perform_caching = false
|
20
|
-
|
21
|
-
# Raise exceptions instead of rendering exception install/templates
|
22
|
-
config.action_dispatch.show_exceptions = false
|
23
|
-
|
24
|
-
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection = false
|
26
|
-
|
27
|
-
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
-
# The :test delivery method accumulates sent emails in the
|
29
|
-
# ActionMailer::Base.deliveries array.
|
30
|
-
config.action_mailer.delivery_method = :test
|
31
|
-
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
|
-
# Print deprecation notices to the stderr
|
36
|
-
config.active_support.deprecation = :stderr
|
37
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Split context in several files.
|
2
|
-
# By default only one file with all translations is exported and
|
3
|
-
# no configuration is required. Your settings for asset pipeline
|
4
|
-
# are automatically recognized.
|
5
|
-
#
|
6
|
-
# If you want to split translations into several files or specify
|
7
|
-
# locale contexts that will be exported, just use this file to do
|
8
|
-
# so.
|
9
|
-
#
|
10
|
-
# If you're going to use the Rails 3.1 asset pipeline, change
|
11
|
-
# the following configuration to something like this:
|
12
|
-
#
|
13
|
-
# translations:
|
14
|
-
# - file: "app/assets/javascripts/i18n/translations.js"
|
15
|
-
#
|
16
|
-
# If you're running an old version, you can use something
|
17
|
-
# like this:
|
18
|
-
#
|
19
|
-
translations:
|
20
|
-
- file: "app/assets/javascripts/i18n/translations.js"
|
21
|
-
only: ["*.admin_js", "*.front_js", "*.product"]
|
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'ab_admin/hooks'
|
2
|
-
|
3
|
-
if Object.const_defined?('AbAdmin')
|
4
|
-
AbAdmin.setup do |config|
|
5
|
-
# Flash keys
|
6
|
-
#config.flash_keys = [ :success, :failure ]
|
7
|
-
config.site_name = 'Dummy'
|
8
|
-
end
|
9
|
-
end
|
10
|
-
|
11
|
-
I18n.available_locales = Globalize.available_locales = [:ru, :en]
|
12
|
-
|
13
|
-
require 'factory_girl'
|
14
|
-
FactoryGirl.definition_file_paths = [File.expand_path('../../factories/', __FILE__)]
|
15
|
-
FactoryGirl.find_definitions
|
@@ -1,7 +0,0 @@
|
|
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,18 +0,0 @@
|
|
1
|
-
# Use this hook to configure ckeditor
|
2
|
-
if Object.const_defined?('Ckeditor')
|
3
|
-
Ckeditor.setup do |config|
|
4
|
-
# ==> ORM configuration
|
5
|
-
# Load and configure the ORM. Supports :active_record (default), :mongo_mapper and
|
6
|
-
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
7
|
-
# available as additional gems.
|
8
|
-
require 'ckeditor/orm/active_record'
|
9
|
-
|
10
|
-
# Allowed image file types for upload.
|
11
|
-
# Set to nil or [] (empty array) for all file types
|
12
|
-
# config.image_file_types = ["jpg", "jpeg", "png", "gif", "tiff"]
|
13
|
-
|
14
|
-
# Allowed attachment file types for upload.
|
15
|
-
# Set to nil or [] (empty array) for all file types
|
16
|
-
# config.attachment_file_types = ["doc", "docx", "xls", "odt", "ods", "pdf", "rar", "zip", "tar", "swf"]
|
17
|
-
end
|
18
|
-
end
|
@@ -1,232 +0,0 @@
|
|
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
|
-
# ==> Mailer Configuration
|
5
|
-
# Configure the e-mail address which will be shown in Devise::Mailer,
|
6
|
-
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
|
7
|
-
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
8
|
-
|
9
|
-
# Configure the class responsible to send e-mails.
|
10
|
-
# config.mailer = "Devise::Mailer"
|
11
|
-
|
12
|
-
# ==> ORM configuration
|
13
|
-
# Load and configure the ORM. Supports :active_record (default) and
|
14
|
-
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
15
|
-
# available as additional gems.
|
16
|
-
require 'devise/orm/active_record'
|
17
|
-
|
18
|
-
# ==> Configuration for any authentication mechanism
|
19
|
-
# Configure which keys are used when authenticating a user. The default is
|
20
|
-
# just :email. You can configure it to use [:username, :subdomain], so for
|
21
|
-
# authenticating a user, both parameters are required. Remember that those
|
22
|
-
# parameters are used only when authenticating and not when retrieving from
|
23
|
-
# session. If you need permissions, you should implement that in a before filter.
|
24
|
-
# You can also supply a hash where the value is a boolean determining whether
|
25
|
-
# or not authentication should be aborted when the value is not present.
|
26
|
-
# config.authentication_keys = [ :email ]
|
27
|
-
|
28
|
-
# Configure parameters from the request object used for authentication. Each entry
|
29
|
-
# given should be a request method and it will automatically be passed to the
|
30
|
-
# find_for_authentication method and considered in your model lookup. For instance,
|
31
|
-
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
32
|
-
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
33
|
-
# config.request_keys = []
|
34
|
-
|
35
|
-
# Configure which authentication keys should be case-insensitive.
|
36
|
-
# These keys will be downcased upon creating or modifying a user and when used
|
37
|
-
# to authenticate or find a user. Default is :email.
|
38
|
-
config.case_insensitive_keys = [ :email ]
|
39
|
-
|
40
|
-
# Configure which authentication keys should have whitespace stripped.
|
41
|
-
# These keys will have whitespace before and after removed upon creating or
|
42
|
-
# modifying a user and when used to authenticate or find a user. Default is :email.
|
43
|
-
config.strip_whitespace_keys = [ :email ]
|
44
|
-
|
45
|
-
# Tell if authentication through request.params is enabled. True by default.
|
46
|
-
# It can be set to an array that will enable params authentication only for the
|
47
|
-
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
48
|
-
# enable it only for database (email + password) authentication.
|
49
|
-
# config.params_authenticatable = true
|
50
|
-
|
51
|
-
# Tell if authentication through HTTP Basic Auth is enabled. False by default.
|
52
|
-
# It can be set to an array that will enable http authentication only for the
|
53
|
-
# given strategies, for example, `config.http_authenticatable = [:token]` will
|
54
|
-
# enable it only for token authentication.
|
55
|
-
# config.http_authenticatable = false
|
56
|
-
|
57
|
-
# If http headers should be returned for AJAX requests. True by default.
|
58
|
-
# config.http_authenticatable_on_xhr = true
|
59
|
-
|
60
|
-
# The realm used in Http Basic Authentication. "Application" by default.
|
61
|
-
# config.http_authentication_realm = "Application"
|
62
|
-
|
63
|
-
# It will change confirmation, password recovery and other workflows
|
64
|
-
# to behave the same regardless if the e-mail provided was right or wrong.
|
65
|
-
# Does not affect registerable.
|
66
|
-
# config.paranoid = true
|
67
|
-
|
68
|
-
# By default Devise will store the user in session. You can skip storage for
|
69
|
-
# :http_auth and :token_auth by adding those symbols to the array below.
|
70
|
-
# Notice that if you are skipping storage for all authentication paths, you
|
71
|
-
# may want to disable generating routes to Devise's sessions controller by
|
72
|
-
# passing skip: :sessions to `devise_for` in your config/routes.rb
|
73
|
-
config.skip_session_storage = [:http_auth]
|
74
|
-
|
75
|
-
# ==> Configuration for :database_authenticatable
|
76
|
-
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
77
|
-
# using other encryptors, it sets how many times you want the password re-encrypted.
|
78
|
-
#
|
79
|
-
# Limiting the stretches to just one in testing will increase the performance of
|
80
|
-
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
81
|
-
# a value less than 10 in other environments.
|
82
|
-
config.stretches = Rails.env.test? ? 1 : 10
|
83
|
-
|
84
|
-
# Setup a pepper to generate the encrypted password.
|
85
|
-
# config.pepper = "600ea5bd75af2386065bb90c59b53e37284b357121d5dd962b27ba021fa91fb92285a6cb955aae3400c750aa6b7491d902dd0ed830763103866df97648a2745a"
|
86
|
-
|
87
|
-
# ==> Configuration for :confirmable
|
88
|
-
# A period that the user is allowed to access the website even without
|
89
|
-
# confirming his account. For instance, if set to 2.days, the user will be
|
90
|
-
# able to access the website for two days without confirming his account,
|
91
|
-
# access will be blocked just in the third day. Default is 0.days, meaning
|
92
|
-
# the user cannot access the website without confirming his account.
|
93
|
-
# config.allow_unconfirmed_access_for = 2.days
|
94
|
-
|
95
|
-
# If true, requires any email changes to be confirmed (exactly the same way as
|
96
|
-
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
97
|
-
# db field (see migrations). Until confirmed new email is stored in
|
98
|
-
# unconfirmed email column, and copied to email column on successful confirmation.
|
99
|
-
config.reconfirmable = true
|
100
|
-
|
101
|
-
# Defines which key will be used when confirming an account
|
102
|
-
# config.confirmation_keys = [ :email ]
|
103
|
-
|
104
|
-
# ==> Configuration for :rememberable
|
105
|
-
# The time the user will be remembered without asking for credentials again.
|
106
|
-
# config.remember_for = 2.weeks
|
107
|
-
|
108
|
-
# If true, extends the user's remember period when remembered via cookie.
|
109
|
-
# config.extend_remember_period = false
|
110
|
-
|
111
|
-
# Options to be passed to the created cookie. For instance, you can set
|
112
|
-
# secure: true in order to force SSL only cookies.
|
113
|
-
# config.rememberable_options = {}
|
114
|
-
|
115
|
-
# ==> Configuration for :validatable
|
116
|
-
# Range for password length. Default is 6..128.
|
117
|
-
# config.password_length = 6..128
|
118
|
-
|
119
|
-
# Email regex used to validate email formats. It simply asserts that
|
120
|
-
# an one (and only one) @ exists in the given string. This is mainly
|
121
|
-
# to give user feedback and not to assert the e-mail validity.
|
122
|
-
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
123
|
-
|
124
|
-
# ==> Configuration for :timeoutable
|
125
|
-
# The time you want to timeout the user session without activity. After this
|
126
|
-
# time the user will be asked for credentials again. Default is 30 minutes.
|
127
|
-
# config.timeout_in = 30.minutes
|
128
|
-
|
129
|
-
# If true, expires auth token on session timeout.
|
130
|
-
# config.expire_auth_token_on_timeout = false
|
131
|
-
|
132
|
-
# ==> Configuration for :lockable
|
133
|
-
# Defines which strategy will be used to lock an account.
|
134
|
-
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
135
|
-
# :none = No lock strategy. You should handle locking by yourself.
|
136
|
-
# config.lock_strategy = :failed_attempts
|
137
|
-
|
138
|
-
# Defines which key will be used when locking and unlocking an account
|
139
|
-
# config.unlock_keys = [ :email ]
|
140
|
-
|
141
|
-
# Defines which strategy will be used to unlock an account.
|
142
|
-
# :email = Sends an unlock link to the user email
|
143
|
-
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
144
|
-
# :both = Enables both strategies
|
145
|
-
# :none = No unlock strategy. You should handle unlocking by yourself.
|
146
|
-
# config.unlock_strategy = :both
|
147
|
-
|
148
|
-
# Number of authentication tries before locking an account if lock_strategy
|
149
|
-
# is failed attempts.
|
150
|
-
# config.maximum_attempts = 20
|
151
|
-
|
152
|
-
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
153
|
-
# config.unlock_in = 1.hour
|
154
|
-
|
155
|
-
# ==> Configuration for :recoverable
|
156
|
-
#
|
157
|
-
# Defines which key will be used when recovering the password for an account
|
158
|
-
# config.reset_password_keys = [ :email ]
|
159
|
-
|
160
|
-
# Time interval you can reset your password with a reset password key.
|
161
|
-
# Don't put a too small interval or your users won't have the time to
|
162
|
-
# change their passwords.
|
163
|
-
config.reset_password_within = 6.hours
|
164
|
-
|
165
|
-
# ==> Configuration for :encryptable
|
166
|
-
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
167
|
-
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
168
|
-
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
169
|
-
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
170
|
-
# REST_AUTH_SITE_KEY to pepper)
|
171
|
-
# config.encryptor = :sha512
|
172
|
-
|
173
|
-
# ==> Configuration for :token_authenticatable
|
174
|
-
# Defines name of the authentication token params key
|
175
|
-
# config.token_authentication_key = :auth_token
|
176
|
-
|
177
|
-
# ==> Scopes configuration
|
178
|
-
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
179
|
-
# "users/sessions/new". It's turned off by default because it's slower if you
|
180
|
-
# are using only default views.
|
181
|
-
# config.scoped_views = false
|
182
|
-
|
183
|
-
# Configure the default scope given to Warden. By default it's the first
|
184
|
-
# devise role declared in your routes (usually :user).
|
185
|
-
# config.default_scope = :user
|
186
|
-
|
187
|
-
# Set this configuration to false if you want /users/sign_out to sign out
|
188
|
-
# only the current scope. By default, Devise signs out all scopes.
|
189
|
-
# config.sign_out_all_scopes = true
|
190
|
-
|
191
|
-
# ==> Navigation configuration
|
192
|
-
# Lists the formats that should be treated as navigational. Formats like
|
193
|
-
# :html, should redirect to the sign in page when the user does not have
|
194
|
-
# access, but formats like :xml or :json, should return 401.
|
195
|
-
#
|
196
|
-
# If you have any extra navigational formats, like :iphone or :mobile, you
|
197
|
-
# should add them to the navigational formats lists.
|
198
|
-
#
|
199
|
-
# The "*/*" below is required to match Internet Explorer requests.
|
200
|
-
# config.navigational_formats = ["*/*", :html]
|
201
|
-
|
202
|
-
# The default HTTP method used to sign out a resource. Default is :delete.
|
203
|
-
config.sign_out_via = Rails.env.test? ? [:get, :delete] : :delete
|
204
|
-
|
205
|
-
# ==> OmniAuth
|
206
|
-
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
207
|
-
# up on your models and hooks.
|
208
|
-
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
|
209
|
-
|
210
|
-
# ==> Warden configuration
|
211
|
-
# If you want to use other strategies, that are not supported by Devise, or
|
212
|
-
# change the failure app, you can configure them inside the config.warden block.
|
213
|
-
#
|
214
|
-
# config.warden do |manager|
|
215
|
-
# manager.intercept_401 = false
|
216
|
-
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
217
|
-
# end
|
218
|
-
|
219
|
-
# ==> Mountable engine configurations
|
220
|
-
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
221
|
-
# is mountable, there are some extra configurations to be taken into account.
|
222
|
-
# The following options are available, assuming the engine is mounted as:
|
223
|
-
#
|
224
|
-
# mount MyEngine, at: "/my_engine"
|
225
|
-
#
|
226
|
-
# The router that invoked `devise_for`, in the example above, would be:
|
227
|
-
# config.router_name = :my_engine
|
228
|
-
#
|
229
|
-
# When using omniauth, Devise cannot automatically set Omniauth path,
|
230
|
-
# so you need to do it manually. For the users scope, it would be:
|
231
|
-
# config.omniauth_path_prefix = "/my_engine/users/auth"
|
232
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Add new inflection rules using the following format
|
4
|
-
# (all these examples are active by default):
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
8
|
-
# inflect.irregular 'person', 'people'
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
10
|
-
# end
|
11
|
-
#
|
12
|
-
# These inflection rules are supported but not enabled by default:
|
13
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
14
|
-
# inflect.acronym 'RESTful'
|
15
|
-
# end
|
@@ -1,7 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
-
Dummy::Application.config.secret_token = '39b255cdd8bb07baf71e8748fa62e733c89463ad9258ce906e6bb98abee01bc92a8d43d473cf80180d8e6326be4f855735de1f8b29adfc4f658a2c7b80f2d643'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
2
|
-
|
3
|
-
Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'#, secret: 'change_me'
|
4
|
-
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
6
|
-
# which shouldn't be used to store highly confidential information
|
7
|
-
# (create the session table with "rails generate session_migration")
|
8
|
-
# Dummy::Application.config.session_store :active_record_store
|
@@ -1,142 +0,0 @@
|
|
1
|
-
# Use this setup block to configure all options available in SimpleForm.
|
2
|
-
SimpleForm.setup do |config|
|
3
|
-
# Wrappers are used by the form builder to generate a
|
4
|
-
# complete input. You can remove any component from the
|
5
|
-
# wrapper, change the order or even add your own to the
|
6
|
-
# stack. The options given below are used to wrap the
|
7
|
-
# whole input.
|
8
|
-
config.wrappers :default, class: :input,
|
9
|
-
hint_class: :field_with_hint, error_class: :field_with_errors do |b|
|
10
|
-
## Extensions enabled by default
|
11
|
-
# Any of these extensions can be disabled for a
|
12
|
-
# given input by passing: `f.input EXTENSION_NAME => false`.
|
13
|
-
# You can make any of these extensions optional by
|
14
|
-
# renaming `b.use` to `b.optional`.
|
15
|
-
|
16
|
-
# Determines whether to use HTML5 (:email, :url, ...)
|
17
|
-
# and required attributes
|
18
|
-
b.use :html5
|
19
|
-
|
20
|
-
# Calculates placeholders automatically from I18n
|
21
|
-
# You can also pass a string as f.input placeholder: "Placeholder"
|
22
|
-
b.use :placeholder
|
23
|
-
|
24
|
-
## Optional extensions
|
25
|
-
# They are disabled unless you pass `f.input EXTENSION_NAME => :lookup`
|
26
|
-
# to the input. If so, they will retrieve the values from the model
|
27
|
-
# if any exists. If you want to enable the lookup for any of those
|
28
|
-
# extensions by default, you can change `b.optional` to `b.use`.
|
29
|
-
|
30
|
-
# Calculates maxlength from length validations for string inputs
|
31
|
-
b.optional :maxlength
|
32
|
-
|
33
|
-
# Calculates pattern from format validations for string inputs
|
34
|
-
b.optional :pattern
|
35
|
-
|
36
|
-
# Calculates min and max from length validations for numeric inputs
|
37
|
-
b.optional :min_max
|
38
|
-
|
39
|
-
# Calculates readonly automatically from readonly attributes
|
40
|
-
b.optional :readonly
|
41
|
-
|
42
|
-
## Inputs
|
43
|
-
b.use :label_input
|
44
|
-
b.use :hint, wrap_with: { tag: :span, class: :hint }
|
45
|
-
b.use :error, wrap_with: { tag: :span, class: :error }
|
46
|
-
end
|
47
|
-
|
48
|
-
# The default wrapper to be used by the FormBuilder.
|
49
|
-
config.default_wrapper = :default
|
50
|
-
|
51
|
-
# Define the way to render check boxes / radio buttons with labels.
|
52
|
-
# Defaults to :nested for bootstrap config.
|
53
|
-
# inline: input + label
|
54
|
-
# nested: label > input
|
55
|
-
config.boolean_style = :nested
|
56
|
-
|
57
|
-
# Default class for buttons
|
58
|
-
config.button_class = 'btn'
|
59
|
-
|
60
|
-
# Method used to tidy up errors. Specify any Rails Array method.
|
61
|
-
# :first lists the first message for each field.
|
62
|
-
# Use :to_sentence to list all errors for each field.
|
63
|
-
# config.error_method = :first
|
64
|
-
|
65
|
-
# Default tag used for error notification helper.
|
66
|
-
config.error_notification_tag = :div
|
67
|
-
|
68
|
-
# CSS class to add for error notification helper.
|
69
|
-
config.error_notification_class = 'alert alert-error'
|
70
|
-
|
71
|
-
# ID to add for error notification helper.
|
72
|
-
# config.error_notification_id = nil
|
73
|
-
|
74
|
-
# Series of attempts to detect a default label method for collection.
|
75
|
-
# config.collection_label_methods = [ :to_label, :name, :title, :to_s ]
|
76
|
-
|
77
|
-
# Series of attempts to detect a default value method for collection.
|
78
|
-
# config.collection_value_methods = [ :id, :to_s ]
|
79
|
-
|
80
|
-
# You can wrap a collection of radio/check boxes in a pre-defined tag, defaulting to none.
|
81
|
-
# config.collection_wrapper_tag = nil
|
82
|
-
|
83
|
-
# You can define the class to use on all collection wrappers. Defaulting to none.
|
84
|
-
# config.collection_wrapper_class = nil
|
85
|
-
|
86
|
-
# You can wrap each item in a collection of radio/check boxes with a tag,
|
87
|
-
# defaulting to :span. Please note that when using :boolean_style = :nested,
|
88
|
-
# SimpleForm will force this option to be a label.
|
89
|
-
# config.item_wrapper_tag = :span
|
90
|
-
|
91
|
-
# You can define a class to use in all item wrappers. Defaulting to none.
|
92
|
-
# config.item_wrapper_class = nil
|
93
|
-
|
94
|
-
# How the label text should be generated altogether with the required text.
|
95
|
-
# config.label_text = lambda { |label, required| "#{required} #{label}" }
|
96
|
-
|
97
|
-
# You can define the class to use on all labels. Default is nil.
|
98
|
-
config.label_class = 'control-label'
|
99
|
-
|
100
|
-
# You can define the class to use on all forms. Default is simple_form.
|
101
|
-
# config.form_class = :simple_form
|
102
|
-
|
103
|
-
# You can define which elements should obtain additional classes
|
104
|
-
# config.generate_additional_classes_for = [:wrapper, :label, :input]
|
105
|
-
|
106
|
-
# Whether attributes are required by default (or not). Default is true.
|
107
|
-
# config.required_by_default = true
|
108
|
-
|
109
|
-
# Tell browsers whether to use default HTML5 validations (novalidate option).
|
110
|
-
# Default is enabled.
|
111
|
-
config.browser_validations = false
|
112
|
-
|
113
|
-
# Collection of methods to detect if a file type was given.
|
114
|
-
# config.file_methods = [ :mounted_as, :file?, :public_filename ]
|
115
|
-
|
116
|
-
# Custom mappings for input types. This should be a hash containing a regexp
|
117
|
-
# to match as key, and the input type that will be used when the field name
|
118
|
-
# matches the regexp as value.
|
119
|
-
# config.input_mappings = { /count/ => :integer }
|
120
|
-
|
121
|
-
# Custom wrappers for input types. This should be a hash containing an input
|
122
|
-
# type as key and the wrapper that will be used for all inputs with specified type.
|
123
|
-
# config.wrapper_mappings = { string: :prepend }
|
124
|
-
|
125
|
-
# Default priority for time_zone inputs.
|
126
|
-
# config.time_zone_priority = nil
|
127
|
-
|
128
|
-
# Default priority for country inputs.
|
129
|
-
# config.country_priority = nil
|
130
|
-
|
131
|
-
# Default size for text inputs.
|
132
|
-
# config.default_input_size = 50
|
133
|
-
|
134
|
-
# When false, do not use translations for labels.
|
135
|
-
# config.translate_labels = true
|
136
|
-
|
137
|
-
# Automatically discover new inputs in Rails' autoload path.
|
138
|
-
# config.inputs_discovery = true
|
139
|
-
|
140
|
-
# Cache SimpleForm inputs discovery
|
141
|
-
# config.cache_discovery = !Rails.env.development?
|
142
|
-
end
|