basepack 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +46 -0
- data/README.md +215 -0
- data/Rakefile +23 -0
- data/app/assets/javascripts/basepack/forms/query/date.jst.ejs +8 -0
- data/app/assets/javascripts/basepack/forms/query/filter.jst.ejs +15 -0
- data/app/assets/javascripts/basepack/forms/query/predicate.jst.ejs +7 -0
- data/app/assets/javascripts/basepack/forms/query.coffee +126 -0
- data/app/assets/javascripts/basepack/forms.coffee +503 -0
- data/app/assets/javascripts/basepack/list.coffee +38 -0
- data/app/assets/javascripts/basepack/loading_spinner.coffee.erb +27 -0
- data/app/assets/javascripts/basepack.js +17 -0
- data/app/assets/stylesheets/basepack/bootstrap-variables.css.scss +42 -0
- data/app/assets/stylesheets/basepack/forms.css.scss +143 -0
- data/app/assets/stylesheets/basepack/print.css.scss +15 -0
- data/app/assets/stylesheets/basepack/select2-bootstrap.css +92 -0
- data/app/assets/stylesheets/basepack/sortable.scss +10 -0
- data/app/assets/stylesheets/basepack/theming.css.scss +73 -0
- data/app/assets/stylesheets/basepack.css.scss +21 -0
- data/app/controllers/basepack/base_controller.rb +766 -0
- data/app/helpers/form_helper.rb +142 -0
- data/app/helpers/resources_helper.rb +50 -0
- data/app/models/basepack/import_importable.rb +24 -0
- data/app/models/basepack/settings.rb +15 -0
- data/app/views/basepack/base/_bulk_edit.html.haml +1 -0
- data/app/views/basepack/base/_diff.html.haml +1 -0
- data/app/views/basepack/base/_edit.html.haml +1 -0
- data/app/views/basepack/base/_export.html.haml +1 -0
- data/app/views/basepack/base/_header.html.haml +25 -0
- data/app/views/basepack/base/_import.html.haml +1 -0
- data/app/views/basepack/base/_index.html.haml +1 -0
- data/app/views/basepack/base/_page_actions.html.haml +24 -0
- data/app/views/basepack/base/_query.html.haml +1 -0
- data/app/views/basepack/base/_show.html.haml +1 -0
- data/app/views/basepack/base/bulk_edit.html.haml +2 -0
- data/app/views/basepack/base/diff.html.haml +2 -0
- data/app/views/basepack/base/edit.html.haml +2 -0
- data/app/views/basepack/base/export.html.haml +3 -0
- data/app/views/basepack/base/import.html.haml +2 -0
- data/app/views/basepack/base/index.html.haml +2 -0
- data/app/views/basepack/base/new.html.haml +2 -0
- data/app/views/basepack/base/show.html.haml +2 -0
- data/app/views/forms/_bulk_edit.html.haml +21 -0
- data/app/views/forms/_diff.html.haml +63 -0
- data/app/views/forms/_edit.html.haml +7 -0
- data/app/views/forms/_export.html.haml +70 -0
- data/app/views/forms/_form_fields.html.haml +13 -0
- data/app/views/forms/_import.html.haml +18 -0
- data/app/views/forms/_import_configuration_csv.html.haml +23 -0
- data/app/views/forms/_list.html.haml +25 -0
- data/app/views/forms/_page_entries_info.html.haml +8 -0
- data/app/views/forms/_pagination.html.haml +3 -0
- data/app/views/forms/_query.html.haml +59 -0
- data/app/views/forms/_query_menu.html.haml +23 -0
- data/app/views/forms/_show.html.haml +11 -0
- data/app/views/forms/_show_without_blanks.html.haml +12 -0
- data/app/views/forms/bulk_edit/_form_filtering_multiselect.html.haml +8 -0
- data/app/views/forms/bulk_edit/_form_nested_many.html.haml +1 -0
- data/app/views/forms/bulk_edit/_form_tag_list.html.haml +1 -0
- data/app/views/forms/bulk_edit/_tag_list_with_suggestions.html.haml +21 -0
- data/app/views/forms/buttons/_apply.html.haml +4 -0
- data/app/views/forms/buttons/_bulk_delete.html.haml +5 -0
- data/app/views/forms/buttons/_cancel.html.haml +3 -0
- data/app/views/forms/buttons/_create.html.haml +5 -0
- data/app/views/forms/buttons/_delete.html.haml +3 -0
- data/app/views/forms/buttons/_edit.html.haml +3 -0
- data/app/views/forms/buttons/_export.html.haml +4 -0
- data/app/views/forms/buttons/_import.html.haml +4 -0
- data/app/views/forms/buttons/_modal_cancel.html.haml +4 -0
- data/app/views/forms/buttons/_modal_close.html.haml +1 -0
- data/app/views/forms/buttons/_print.html.haml +3 -0
- data/app/views/forms/buttons/_query.html.haml +25 -0
- data/app/views/forms/buttons/_refresh.html.haml +4 -0
- data/app/views/forms/buttons/_submit.html.haml +4 -0
- data/app/views/forms/buttons/_submit_create.html.haml +4 -0
- data/app/views/forms/edit/_form_ck_editor.html.haml +11 -0
- data/app/views/forms/edit/_form_code_mirror.html.haml +10 -0
- data/app/views/forms/edit/_form_colorpicker.html.haml +7 -0
- data/app/views/forms/edit/_form_datetime.html.haml +6 -0
- data/app/views/forms/edit/_form_enumeration.html.haml +20 -0
- data/app/views/forms/edit/_form_field.html.haml +8 -0
- data/app/views/forms/edit/_form_file_upload.html.haml +14 -0
- data/app/views/forms/edit/_form_filtering_multiselect.html.haml +2 -0
- data/app/views/forms/edit/_form_filtering_select.html.haml +2 -0
- data/app/views/forms/edit/_form_nested_many.html.haml +14 -0
- data/app/views/forms/edit/_form_nested_one.html.haml +5 -0
- data/app/views/forms/edit/_form_polymorphic_association.html.haml +11 -0
- data/app/views/forms/edit/_form_rich_text.html.haml +8 -0
- data/app/views/forms/edit/_form_tag_list.html.haml +1 -0
- data/app/views/forms/edit/_form_text.html.haml +2 -0
- data/app/views/forms/edit/_form_wysihtml5.html.haml +9 -0
- data/app/views/forms/edit/_select_or_nested.html.haml +30 -0
- data/app/views/forms/edit/_tag_list_with_suggestions.html.haml +15 -0
- data/app/views/kaminari/_first_page.html.erb +3 -0
- data/app/views/kaminari/_gap.html.erb +3 -0
- data/app/views/kaminari/_last_page.html.erb +3 -0
- data/app/views/kaminari/_next_page.html.erb +3 -0
- data/app/views/kaminari/_page.html.erb +3 -0
- data/app/views/kaminari/_paginator.html.erb +17 -0
- data/app/views/kaminari/_prev_page.html.erb +3 -0
- data/config/basepack-settings.yml +38 -0
- data/config/initializers/basepack.rb +1 -0
- data/config/initializers/kaminari_config.rb +10 -0
- data/config/initializers/rails_admin.rb +6 -0
- data/config/initializers/ransack.rb +95 -0
- data/config/initializers/simple_form.rb +145 -0
- data/config/initializers/simple_form_bootstrap.rb +47 -0
- data/config/locales/cs.yml +13 -0
- data/config/locales/en.yml +24 -0
- data/config/locales/kaminari.cs.yml +20 -0
- data/config/locales/kaminari.en.yml +19 -0
- data/config/locales/rails_admin.cs.yml +130 -0
- data/config/locales/ransack.cs.yml +70 -0
- data/config/locales/simple_form.cs.yml +28 -0
- data/config/locales/simple_form.en.yml +24 -0
- data/config/routes.rb +2 -0
- data/lib/basepack/delegation.rb +66 -0
- data/lib/basepack/engine.rb +28 -0
- data/lib/basepack/filter_ql.rb +267 -0
- data/lib/basepack/forms/base.rb +246 -0
- data/lib/basepack/forms/bulk_edit.rb +44 -0
- data/lib/basepack/forms/diff.rb +66 -0
- data/lib/basepack/forms/edit.rb +145 -0
- data/lib/basepack/forms/export.rb +109 -0
- data/lib/basepack/forms/factories/base.rb +53 -0
- data/lib/basepack/forms/factories/query_rails_admin.rb +31 -0
- data/lib/basepack/forms/factories/rails_admin.rb +57 -0
- data/lib/basepack/forms/fields/base.rb +158 -0
- data/lib/basepack/forms/fields/belongs_to_association.rb +25 -0
- data/lib/basepack/forms/fields/has_and_belongs_to_many_association.rb +12 -0
- data/lib/basepack/forms/fields/has_many_association.rb +50 -0
- data/lib/basepack/forms/fields/has_one_association.rb +19 -0
- data/lib/basepack/forms/fields/single_association.rb +32 -0
- data/lib/basepack/forms/groups/base.rb +71 -0
- data/lib/basepack/forms/groups/diff.rb +18 -0
- data/lib/basepack/forms/import.rb +147 -0
- data/lib/basepack/forms/list.rb +74 -0
- data/lib/basepack/forms/query.rb +211 -0
- data/lib/basepack/forms/show.rb +18 -0
- data/lib/basepack/import/actions.rb +105 -0
- data/lib/basepack/import/controller.rb +94 -0
- data/lib/basepack/import/importable.rb +40 -0
- data/lib/basepack/import/model_dragonfly.rb +232 -0
- data/lib/basepack/model.rb +30 -0
- data/lib/basepack/renderable.rb +45 -0
- data/lib/basepack/sections/bulk_edit.rb +15 -0
- data/lib/basepack/sections/import.rb +15 -0
- data/lib/basepack/sections/query.rb +19 -0
- data/lib/basepack/utils.rb +225 -0
- data/lib/basepack/version.rb +3 -0
- data/lib/basepack.rb +215 -0
- data/lib/generators/basepack/install_generator.rb +185 -0
- data/lib/generators/basepack/scaffold/scaffold_generator.rb +12 -0
- data/lib/generators/basepack/templates/application.css.scss +15 -0
- data/lib/generators/basepack/templates/application.js +20 -0
- data/lib/generators/basepack/templates/basepack-settings.yml +15 -0
- data/lib/generators/basepack/templates/basepack_and_overrides.css +3 -0
- data/lib/generators/basepack/templates/basepack_and_overrides.css.scss +3 -0
- data/lib/generators/basepack/templates/dragonfly.rb +8 -0
- data/lib/generators/basepack/templates/filter.rb +84 -0
- data/lib/generators/basepack/templates/filters_controller.rb +2 -0
- data/lib/generators/basepack/templates/import.rb +35 -0
- data/lib/generators/basepack/templates/layouts/_content.html.haml +8 -0
- data/lib/generators/basepack/templates/layouts/_facebook.html.haml +11 -0
- data/lib/generators/basepack/templates/layouts/_footer.html.haml +2 -0
- data/lib/generators/basepack/templates/layouts/_head.html.haml +17 -0
- data/lib/generators/basepack/templates/layouts/_header.html.haml +1 -0
- data/lib/generators/basepack/templates/layouts/_navigation.html.erb +28 -0
- data/lib/generators/basepack/templates/layouts/application-fluid.html.haml +18 -0
- data/lib/generators/basepack/templates/layouts/application.html.haml +11 -0
- data/lib/generators/basepack/templates/layouts/rails_admin/application.html.haml +24 -0
- data/lib/generators/basepack/templates/migrations/create_filters.rb +15 -0
- data/lib/generators/basepack/templates/migrations/create_imports.rb +23 -0
- data/lib/generators/basepack/templates/migrations/create_imports_importables_join_table.rb +10 -0
- data/lib/generators/basepack/templates/rails_admin.rb +35 -0
- data/lib/generators/basepack/templates/resources_controller.rb +3 -0
- data/lib/generators/rails/basepack_controller_generator.rb +11 -0
- data/lib/generators/rails/basepack_resource_route_generator.rb +40 -0
- data/lib/generators/rails/templates/controller.rb +6 -0
- data/lib/tasks/basepack_tasks.rake +4 -0
- data/spec/controllers/basepack/base_controller_spec.rb +5 -0
- data/spec/dummy_app/README.rdoc +28 -0
- data/spec/dummy_app/Rakefile +7 -0
- data/spec/dummy_app/app/assets/javascripts/application.js +19 -0
- data/spec/dummy_app/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy_app/app/assets/stylesheets/basepack_and_overrides.css +3 -0
- data/spec/dummy_app/app/controllers/accounts_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/application_controller.rb +5 -0
- data/spec/dummy_app/app/controllers/employee_with_nesteds_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/employees_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/positions_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/projects_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/resources_controller.rb +2 -0
- data/spec/dummy_app/app/controllers/skills_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/tasks_controller.rb +3 -0
- data/spec/dummy_app/app/controllers/users_controller.rb +2 -0
- data/spec/dummy_app/app/helpers/application_helper.rb +2 -0
- data/spec/dummy_app/app/models/ability.rb +7 -0
- data/spec/dummy_app/app/models/account.rb +18 -0
- data/spec/dummy_app/app/models/employee.rb +56 -0
- data/spec/dummy_app/app/models/employee_with_nested.rb +6 -0
- data/spec/dummy_app/app/models/position.rb +13 -0
- data/spec/dummy_app/app/models/project.rb +16 -0
- data/spec/dummy_app/app/models/settings.rb +4 -0
- data/spec/dummy_app/app/models/skill.rb +13 -0
- data/spec/dummy_app/app/models/task.rb +20 -0
- data/spec/dummy_app/app/models/user.rb +26 -0
- data/spec/dummy_app/app/views/layouts/_content.html.haml +8 -0
- data/spec/dummy_app/app/views/layouts/_footer.html.haml +2 -0
- data/spec/dummy_app/app/views/layouts/_head.html.haml +17 -0
- data/spec/dummy_app/app/views/layouts/_header.html.haml +1 -0
- data/spec/dummy_app/app/views/layouts/_navigation.html.erb +28 -0
- data/spec/dummy_app/app/views/layouts/application.html.haml +11 -0
- data/spec/dummy_app/bin/bundle +3 -0
- data/spec/dummy_app/bin/rails +4 -0
- data/spec/dummy_app/bin/rake +4 -0
- data/spec/dummy_app/config/application.rb +28 -0
- data/spec/dummy_app/config/boot.rb +5 -0
- data/spec/dummy_app/config/database.yml +25 -0
- data/spec/dummy_app/config/environment.rb +5 -0
- data/spec/dummy_app/config/environments/development.rb +29 -0
- data/spec/dummy_app/config/environments/production.rb +80 -0
- data/spec/dummy_app/config/environments/test.rb +36 -0
- data/spec/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy_app/config/initializers/devise.rb +213 -0
- data/spec/dummy_app/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy_app/config/initializers/inflections.rb +16 -0
- data/spec/dummy_app/config/initializers/mime_types.rb +5 -0
- data/spec/dummy_app/config/initializers/rails_admin.rb +33 -0
- data/spec/dummy_app/config/initializers/secret_token.rb +12 -0
- data/spec/dummy_app/config/initializers/session_store.rb +3 -0
- data/spec/dummy_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy_app/config/locales/devise.en.yml +59 -0
- data/spec/dummy_app/config/locales/en.yml +23 -0
- data/spec/dummy_app/config/routes.rb +32 -0
- data/spec/dummy_app/config.ru +4 -0
- data/spec/dummy_app/db/development.sqlite3 +0 -0
- data/spec/dummy_app/db/migrate/20131017141521_devise_create_users.rb +46 -0
- data/spec/dummy_app/db/migrate/20131204162705_create_employees.rb +13 -0
- data/spec/dummy_app/db/migrate/20131204163255_create_positions.rb +9 -0
- data/spec/dummy_app/db/migrate/20131204163517_create_tasks.rb +11 -0
- data/spec/dummy_app/db/migrate/20131207080009_create_accounts.rb +10 -0
- data/spec/dummy_app/db/migrate/20131207080750_create_skills.rb +9 -0
- data/spec/dummy_app/db/migrate/20131207081215_employees_skills.rb +10 -0
- data/spec/dummy_app/db/migrate/20131213193133_create_projects.rb +11 -0
- data/spec/dummy_app/db/migrate/20131213195422_change_tasks_associations.rb +5 -0
- data/spec/dummy_app/db/migrate/20131220193113_add_title_to_employees.rb +5 -0
- data/spec/dummy_app/db/schema.rb +121 -0
- data/spec/dummy_app/db/test.sqlite3 +0 -0
- data/spec/dummy_app/log/development.log +6801 -0
- data/spec/dummy_app/log/test.log +292178 -0
- data/spec/dummy_app/public/404.html +58 -0
- data/spec/dummy_app/public/422.html +58 -0
- data/spec/dummy_app/public/500.html +57 -0
- data/spec/dummy_app/public/favicon.ico +0 -0
- data/spec/dummy_app/spec/factories/factories.rb +40 -0
- data/spec/dummy_app/spec/models/employees_spec.rb +5 -0
- data/spec/dummy_app/spec/models/user_spec.rb +24 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/4c3af79921173448804b83f254ba105cda287756/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/517b219fe56f7ccf93e010b001d2d3a1b459bfba/bootstrap-modal.cssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/jquery.colorpicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/jquery.ui.timepicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/ra.calendar-additions.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/6c0703113df22b0e3ea387c6ab99e8fcfd6a83c2/jquery-ui-1.8.7.custom.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/bootstrap-variables.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/forms.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/print.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/select2-bootstrap.cssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/sortable.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/theming.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/9c999c00494fa4fafa9bdff246834bab6e26edf8/basepack.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/c7a33d5d8afb8d443e69f9ef9559d2ebad9cb197/bootstrap-responsive.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/c7a33d5d8afb8d443e69f9ef9559d2ebad9cb197/bootstrap.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_accordion.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_alerts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_breadcrumbs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_button-groups.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_buttons.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_carousel.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_close.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_code.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_component-animations.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_dropdowns.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_forms.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_grid.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_hero-unit.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_labels-badges.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_layouts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_media.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_modals.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_navs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_pager.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_pagination.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_popovers.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_progress-bars.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_reset.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-1200px-min.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-767px-max.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-768px-979px.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_scaffolding.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_sprites.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_tables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_thumbnails.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_tooltip.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_type.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_wells.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/bootstrap.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/responsive.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sass/f31185238ced2f85aef3331b2fccaf2065e3231a/select2.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/00241a7292d851bac376d0f0957e63ff +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/003e285de7c62692a9fe3b8f50902380 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/0104c964a4f56bb5b2899a07f10af9f9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/052bb63ff29bc44571c2232131c36a8a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/089607f98e898c71fd68e8ae51754987 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/09050dc72206d6f6ad9f3f02b685419b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/0cafd9bc53d49c2cf5e5824a613c234a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/0ff0b5f27512c6d962359fb992396486 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/11bce97ed3034e6e70d23980be846e97 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/11eff350cf9d6699fa472a8cc51a5ae4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/12ca1512e2358f3ac0eb9052a78f0a87 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/184efa29626c6b13fd6f290830370818 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/1a9589d7b8d8cbf05f74469c8f4c4156 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/1c50d4281907563387028ba86a066d3c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/22e2b6a8afe048228c40b58e65bfdb13 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2598bea497f818511170f1767eb626cb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/26576898fc49833696cd3f3fb7eccf95 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/28418912ed32585ce915ff3973682be4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2a6e117dba2d7db2ef21aca7fcb9230c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2aac860bfb56742949faa12d706267d0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2c8963580cbc47dc28cbed8da42f84ca +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2cc54b227549bd5df491930580a8bc64 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2da93a1145941acb52281bece48fe4a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/2f7c7ba8274ab8efb2b4f5cdecbd6a32 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/30f9c6c7e6c0b1341b38eb1b28f31810 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/33b864d3cf87bb7e2b39adfa0426f263 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/33d1f9ea25c7b89f2459940d9212a669 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/37f26ee40ea683e5f0ceaf797b814a54 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/38b637f41c9bd27a51de4b1762a73647 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3a736bd97a21b78316991160ba80effd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3bd17609c55e7cdacc4b78a9dd1ed0d1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3c4ff97255336da127cbcb0caf6e3015 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3c88e1379f0ea6777de02c6a0b8c9945 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3c8e11617355c1c5e083959f26cee4b6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3d03edf86b468f9e9b330ed805860769 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3d7fbddfa7a63c926358b342a3eac479 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3db6c2748a108d113d84d4110cf508c6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3de8063d0af2ad28e95baf817514b616 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/3f30325451dfb42de8d8ed9a9c084659 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/47b40976b55c9edc54252cc19e81984d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/47d3aa8065e6b7e20f718fcd29cb8660 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4a4c804531d617393de455ae5e7d3ef3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4b33722102ab3dcfd0b25b5bef28dea2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4d002d1a4924d16b15d4ed3f18091bff +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4fb84f030762485b5f9e956b5185da20 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/4fc760e501c018ae614b48f11d1d291a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/506b60726578735bdb85ff7c0d7fe54e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/508370aab9933724fc4d037be88afc43 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/508c14fe1a15ea3e34224307aac6225d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/558a8cddd270ecb5edb5567005eebc6c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/56784bb9c5211915112e308ec4fe55bd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/572d0e3e85fa261156105039963d871d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5748f429893a84aa7c3d3f5a8c83c429 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/57ca51d3b9c0dca90847bde786647ed9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/58216b347a0e26bfb17bb6858fa58fe3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5a723f838e928f8525dbfe097421bcc5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5ca7841eb0c1ce4fce5ca5c089c81a27 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5d92496bf7c2f2a7c6f658a3bfd9168c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5de0dcc5b363271c35e2f24cdc6d0fb5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5e2ab7bcc69360d652fafb3fbc63c5a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5e2af01867b50ec9e726fc860497c77f +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5e377f8032ceddd7a1010605ae5a4e36 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/5e5e62c9fddb2531b4265503882f69d4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6296f81d09f2fb08fc08cfb512d06172 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/63a371041bf7f21fa88e427db780f480 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/63ae6b3d3df541f5fc47dd7722eedffc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/64888fd16034a8607f962f87418fedb3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/67bcc3d148c493a1945bc97ef249d81d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/68378e5dd52f7dedcefab5dd586a99b4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6a03a21304c0e62a86f049dbd1bec75d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6d6cbd0baea2774f4a367edf79c20efb +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6e81adbb0a0e41feab2afa9b138d0a6d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6f222094c80a63b5f18d99b89ec1df5f +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6f4d8a75f9952ad791647a0c21be66d3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/6f83c9939102b4619eabd02111cf327d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/704e339f6490098455c0c834c0ba168e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/72b128fc6f546bdd9b63f28a930e6f63 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/72c1561e683cf672ae85824865c551ea +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/733efb7785d2a5bf99bfabc1e65bc6cc +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7358b3ce166ffd9482ebf11bcae20b4e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7398227d5d76926ebb4eefd0f60a8682 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/749bdc6c2fb7dc20a6a2ac10738c7b32 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/766f9ac65b372adfffbc20fc3c11787d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/780aca8465b079da370475ddc33153c8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/78107b4418a915310b877f2476a86c6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7bc5f8b1be235cc1cc912f2ce07b3575 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7bf5b05b9aa2a7f9ee3aa9256775e185 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7c4325d5e7ed475316bc2f09f5a8426b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7d3a0d4123a39f727d17b424cb809172 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7d7323f314bbd56742b63fbb33245731 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7e17604cb69365b9c04ab2bdab5e1883 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/7f079fa6db901e720e9a93fb9fea4fc3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/805aeb5e9f7a354449fe22b474de0ac3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/827c7c505cb992c5d964bcbc2fc423d7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8356748bbeceb07c6517ded5fcbeec11 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/83e117043b923d0d16ab464274ae7761 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/848fa2a63c294b86937ee46fdcb42969 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/84dd8d2de6f42c1106c041b3af94a8b2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/84ed3d82ea61013675e915122c957247 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8589169f6c1a9ee8a6467dd57394aa1c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/864c25920b418fdad6911595015b545e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/867a7f30a2e3e699a4dd32531b542fa2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/887d9742047f5e9c5eceaf910c77a1de +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8a577fda2de89b9bee8e3e3edff1e493 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8c2ee669e9cd5c095f2f4ff75d814907 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/8f6c0c726ca9a75d4d4dc89ab01cd6f9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9115a6dc55fd7a6bd4eb922e8f4327c1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/93a7167bf36c621d305a9481e3d25bce +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9492d6e391e59a3b1fe0926011514606 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/98797413746006678e6718e2fc0072e3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9ea680f1317b9aabfa7f2c8500d8d238 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9edca4894af4373eb021d163773d4ad5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/9f0670e1cd6d8b55b6f4538ad18d24dd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a5e7024917f7c6b419ab0cdf38e72e6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a61f72bcd625cc47886c1928cd35055c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a6fad88c8628b92fa21b43b1aa76cf7d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a7825c008941de47e400148ced44c977 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a7957c8a663412b3fc916487d9b4fa11 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/a979dde04e397cb6c5c3bbfe0ff3d6cf +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/abbc1edaaf47dfc80b1166ef445e776e +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/abe5d0ed7bfa91ab738920f1d07df4c6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/addd43bf5b4f0533b7e8041185debdd3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ae79cf81961bd21d204095a53ad08acd +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b13b77b3a33991854e944d8a18f17d62 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b262e9ec489792ed46d9a3f061a2575f +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b563282525ff9ba52595f00de0175716 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b5cfdf8b42163460b9a99af40af1f850 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/b8a8c2faf730407b004ec269c26473d7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bf2ad2d8b5bd3fdc6aa311eb0e0d002a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/bf5d63f847739999ed7724f45d7593d5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c0ba2663731f9ebc0224d9c3fa57dd5d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c0f6d55b2d582ab7f1a8f1b2baa0e55c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c1248b471da8a4a819a68eb0af3dc103 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c2266d7fe9597848b5baa3b118ada4f4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c2e43f298ce02a9c759d2b7df87a81a6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c38e7994f800531bc12b23135523c6b3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c3eaaf0a21b3dfc3c3a607a6ad16ddca +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c3f0b48cfae36a2ddf7176919c338557 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c4858b3b9b3bd5475da0e04bd3a35191 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c60717cd75961085cbfaed1b3db6f6af +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c79787636fbf28ee3ffd89edf5669d75 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c81f70729312f8cfffb2fa682afd6a39 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c9487d16cf2ce7367963c017d1732be2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/c98b3083f4ba9d3d0a76bac8d1a8e2e9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/caef372e0b0efd371eb93602c2ba72b6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/cb1f853dc4682e46b8f6922910af7491 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ce095fdd19d87bdedf6f29dedc5f8be2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ce1b44d8727c41febfc3a96f9bd00599 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ce57fab3414f0fb0fd0dec0214b04d2f +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/cef38ed915676983be0704ef77a90742 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d019216c3cec51a12564f968de0c3a8d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d318e9b3460db4bf73b729bb3d937077 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d82b7d635f85356c0e82b32ba4c6a4aa +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/d92dd66f936d3a75c863b72e2b27115d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/db31397e2b32946f71bec3519464a2da +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ddf79bf78a7f737dc2c2e6747003b7d0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ddfe77f5b6c3a355da00713ec7c8b092 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/df4353ad516c274a84e9ccb80b30a3ac +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e1cbb636d734b1c62f30f4f238c9662a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e21995a68b298fb3743da07cc42cecc6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e38a482225929905e4c579fc6fa31238 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e481ffc4e01eb6fbf7ce2ffd1636a669 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e545f687f3a940a17b49b971b4133c0c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e6548eae94b88a5488902e756cb0b8a8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e6af1f885ff81245d4ada1412fda047b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/e8678645dc9662106d5d3504a253950d +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/eadf6b627f39c82d965368dd440557c3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/eef581f1488012db6d2917e1bfdd8696 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ef00280fe4cee5914acc741f3fe2e25a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ef24895902c6875e7b5476d9d73d8e6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f03b1104103a3a2aab0806b59a918f2f +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f0906a63ce8aa3885ea12f7b2e04b203 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f30c986d0368baf246d16a5a9baf0a3a +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f4d2c43148f3ab92536c07cb05df0a4c +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f5b822723ea8a3561c0f0a8819ab2838 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f82cd72f16a42c411e418fb85e3da9e7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/f86420678d4a78184e7c2fd2c2ae2b02 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/fd469e8d4a2474e7a0de32464b4c9be6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ff435fd5d18db4f8c1de46245385d286 +0 -0
- data/spec/dummy_app/tmp/cache/assets/development/sprockets/ffbfecea42fde1ce85f0c6993dacb73a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/4c3af79921173448804b83f254ba105cda287756/font-awesome.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/517b219fe56f7ccf93e010b001d2d3a1b459bfba/bootstrap-modal.cssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/jquery.colorpicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/jquery.ui.timepicker.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/5f2148516ed2cc365f29b92c4f1d6f005cae0a2d/ra.calendar-additions.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/6c0703113df22b0e3ea387c6ab99e8fcfd6a83c2/jquery-ui-1.8.7.custom.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/bootstrap-variables.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/forms.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/print.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/select2-bootstrap.cssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/sortable.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/72fd245dc0f9dc0baba8cfdebd78071f7693f8cf/theming.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/9c999c00494fa4fafa9bdff246834bab6e26edf8/basepack.css.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7a33d5d8afb8d443e69f9ef9559d2ebad9cb197/bootstrap-responsive.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/c7a33d5d8afb8d443e69f9ef9559d2ebad9cb197/bootstrap.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_accordion.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_alerts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_breadcrumbs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_button-groups.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_buttons.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_carousel.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_close.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_code.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_component-animations.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_dropdowns.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_forms.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_grid.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_hero-unit.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_labels-badges.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_layouts.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_media.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_mixins.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_modals.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_navs.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_pager.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_pagination.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_popovers.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_progress-bars.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_reset.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-1200px-min.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-767px-max.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-768px-979px.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-navbar.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_responsive-utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_scaffolding.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_sprites.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_tables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_thumbnails.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_tooltip.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_type.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_utilities.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_variables.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/_wells.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/bootstrap.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/dacfd9c3953b41ace4d8fe1afd7b6ca0584d6004/responsive.scssc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sass/f31185238ced2f85aef3331b2fccaf2065e3231a/select2.css.erbc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/00241a7292d851bac376d0f0957e63ff +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/003e285de7c62692a9fe3b8f50902380 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0104c964a4f56bb5b2899a07f10af9f9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/089607f98e898c71fd68e8ae51754987 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0cafd9bc53d49c2cf5e5824a613c234a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/0ff0b5f27512c6d962359fb992396486 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/11bce97ed3034e6e70d23980be846e97 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/11eff350cf9d6699fa472a8cc51a5ae4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/12ca1512e2358f3ac0eb9052a78f0a87 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/184efa29626c6b13fd6f290830370818 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1a9589d7b8d8cbf05f74469c8f4c4156 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/1c50d4281907563387028ba86a066d3c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/22e2b6a8afe048228c40b58e65bfdb13 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2598bea497f818511170f1767eb626cb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/26576898fc49833696cd3f3fb7eccf95 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/28418912ed32585ce915ff3973682be4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2aac860bfb56742949faa12d706267d0 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2c8963580cbc47dc28cbed8da42f84ca +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2cc54b227549bd5df491930580a8bc64 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2da93a1145941acb52281bece48fe4a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/30f9c6c7e6c0b1341b38eb1b28f31810 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/33b864d3cf87bb7e2b39adfa0426f263 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/33d1f9ea25c7b89f2459940d9212a669 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/37f26ee40ea683e5f0ceaf797b814a54 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/38b637f41c9bd27a51de4b1762a73647 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3c4ff97255336da127cbcb0caf6e3015 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3c8e11617355c1c5e083959f26cee4b6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3d03edf86b468f9e9b330ed805860769 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3d7fbddfa7a63c926358b342a3eac479 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3de8063d0af2ad28e95baf817514b616 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/3f30325451dfb42de8d8ed9a9c084659 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/47d3aa8065e6b7e20f718fcd29cb8660 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4a4c804531d617393de455ae5e7d3ef3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4b33722102ab3dcfd0b25b5bef28dea2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4d002d1a4924d16b15d4ed3f18091bff +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4fb84f030762485b5f9e956b5185da20 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/4fc760e501c018ae614b48f11d1d291a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/506b60726578735bdb85ff7c0d7fe54e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/508c14fe1a15ea3e34224307aac6225d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/572d0e3e85fa261156105039963d871d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5748f429893a84aa7c3d3f5a8c83c429 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/57ca51d3b9c0dca90847bde786647ed9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/58216b347a0e26bfb17bb6858fa58fe3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5a723f838e928f8525dbfe097421bcc5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5ca7841eb0c1ce4fce5ca5c089c81a27 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5de0dcc5b363271c35e2f24cdc6d0fb5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5e2ab7bcc69360d652fafb3fbc63c5a3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/5e2af01867b50ec9e726fc860497c77f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/63a371041bf7f21fa88e427db780f480 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/63ae6b3d3df541f5fc47dd7722eedffc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/64888fd16034a8607f962f87418fedb3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/67bcc3d148c493a1945bc97ef249d81d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/68378e5dd52f7dedcefab5dd586a99b4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6a03a21304c0e62a86f049dbd1bec75d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6d6cbd0baea2774f4a367edf79c20efb +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6e81adbb0a0e41feab2afa9b138d0a6d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6f222094c80a63b5f18d99b89ec1df5f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6f4d8a75f9952ad791647a0c21be66d3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/6f83c9939102b4619eabd02111cf327d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/704e339f6490098455c0c834c0ba168e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/72b128fc6f546bdd9b63f28a930e6f63 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/72c1561e683cf672ae85824865c551ea +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/733efb7785d2a5bf99bfabc1e65bc6cc +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7398227d5d76926ebb4eefd0f60a8682 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/766f9ac65b372adfffbc20fc3c11787d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/780aca8465b079da370475ddc33153c8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/78107b4418a915310b877f2476a86c6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7bc5f8b1be235cc1cc912f2ce07b3575 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7c4325d5e7ed475316bc2f09f5a8426b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7d3a0d4123a39f727d17b424cb809172 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7d7323f314bbd56742b63fbb33245731 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7e17604cb69365b9c04ab2bdab5e1883 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/7f079fa6db901e720e9a93fb9fea4fc3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/827c7c505cb992c5d964bcbc2fc423d7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/83e117043b923d0d16ab464274ae7761 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/848fa2a63c294b86937ee46fdcb42969 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/84dd8d2de6f42c1106c041b3af94a8b2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/84ed3d82ea61013675e915122c957247 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8589169f6c1a9ee8a6467dd57394aa1c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/887d9742047f5e9c5eceaf910c77a1de +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8a577fda2de89b9bee8e3e3edff1e493 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8c2ee669e9cd5c095f2f4ff75d814907 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/8f6c0c726ca9a75d4d4dc89ab01cd6f9 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9115a6dc55fd7a6bd4eb922e8f4327c1 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/93a7167bf36c621d305a9481e3d25bce +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/9492d6e391e59a3b1fe0926011514606 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/98797413746006678e6718e2fc0072e3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a5e7024917f7c6b419ab0cdf38e72e6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a61f72bcd625cc47886c1928cd35055c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a6fad88c8628b92fa21b43b1aa76cf7d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a7825c008941de47e400148ced44c977 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/a7957c8a663412b3fc916487d9b4fa11 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/abbc1edaaf47dfc80b1166ef445e776e +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/abe5d0ed7bfa91ab738920f1d07df4c6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/addd43bf5b4f0533b7e8041185debdd3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ae79cf81961bd21d204095a53ad08acd +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b13b77b3a33991854e944d8a18f17d62 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b262e9ec489792ed46d9a3f061a2575f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b563282525ff9ba52595f00de0175716 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b5cfdf8b42163460b9a99af40af1f850 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/b8a8c2faf730407b004ec269c26473d7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bf2ad2d8b5bd3fdc6aa311eb0e0d002a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/bf5d63f847739999ed7724f45d7593d5 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c0ba2663731f9ebc0224d9c3fa57dd5d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c1248b471da8a4a819a68eb0af3dc103 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c2266d7fe9597848b5baa3b118ada4f4 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c38e7994f800531bc12b23135523c6b3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c3eaaf0a21b3dfc3c3a607a6ad16ddca +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c3f0b48cfae36a2ddf7176919c338557 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c4858b3b9b3bd5475da0e04bd3a35191 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c60717cd75961085cbfaed1b3db6f6af +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c79787636fbf28ee3ffd89edf5669d75 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c81f70729312f8cfffb2fa682afd6a39 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/c9487d16cf2ce7367963c017d1732be2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/caef372e0b0efd371eb93602c2ba72b6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ce095fdd19d87bdedf6f29dedc5f8be2 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ce1b44d8727c41febfc3a96f9bd00599 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ce57fab3414f0fb0fd0dec0214b04d2f +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cef38ed915676983be0704ef77a90742 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d82b7d635f85356c0e82b32ba4c6a4aa +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/d92dd66f936d3a75c863b72e2b27115d +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/df4353ad516c274a84e9ccb80b30a3ac +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e1cbb636d734b1c62f30f4f238c9662a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e21995a68b298fb3743da07cc42cecc6 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e38a482225929905e4c579fc6fa31238 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e481ffc4e01eb6fbf7ce2ffd1636a669 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e545f687f3a940a17b49b971b4133c0c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e6548eae94b88a5488902e756cb0b8a8 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/e6af1f885ff81245d4ada1412fda047b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/eadf6b627f39c82d965368dd440557c3 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ef24895902c6875e7b5476d9d73d8e6b +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f0906a63ce8aa3885ea12f7b2e04b203 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f30c986d0368baf246d16a5a9baf0a3a +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f4d2c43148f3ab92536c07cb05df0a4c +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f5b822723ea8a3561c0f0a8819ab2838 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/f82cd72f16a42c411e418fb85e3da9e7 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ff435fd5d18db4f8c1de46245385d286 +0 -0
- data/spec/dummy_app/tmp/cache/assets/test/sprockets/ffbfecea42fde1ce85f0c6993dacb73a +0 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162026497852199536.html +140 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162030365979579973.html +138 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162048324949230951.html +112 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162050472624679051.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162051149832011801.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162051552039794721.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162053001557043118.html +747 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162053292250254476.html +115 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162152333224586970.html +131 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131216215647403551844.html +125 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162158082748551609.html +131 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312162158088359803421.html +131 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312182137592841800935.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131218214441554050539.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312261935056942776945.html +259 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312261936286563388256.html +259 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271118002257059702.html +153 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271128336029989748.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271129315690411904.html +121 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227113202580591737.html +107 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271132244794498907.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271133318824850156.html +112 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271134317429303772.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271134353284147706.html +153 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227113603650964832.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271137218900108849.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271218362796119085.html +122 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271218401902692864.html +153 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271219015533405075.html +153 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271220169885656076.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271220441372008048.html +123 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271220485434671929.html +153 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271224181755415982.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271224325301730596.html +123 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271228171029900518.html +113 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271407363281638390.html +628 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271408083129633112.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271415367683301637.html +628 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271417475568989244.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271418196628463520.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271420132522546597.html +198 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271420133130129630.html +198 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271425401053845386.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271426108301688471.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271428418329320932.html +127 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271431575742602266.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271433385527107241.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271433401942304014.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271439499410141437.html +116 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271439509031720607.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271441348332077802.html +126 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271441365445661911.html +116 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271457397144808296.html +416 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271504022932290123.html +448 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227150426152029741.html +416 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271505268120229617.html +450 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227150615333567591.html +450 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271506599178616234.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271507017378535543.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271507357624937637.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227150741532676452.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227150820420044934.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271508259996452817.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271509203051781930.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271509248613318515.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271514294787082016.html +198 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271514297373677646.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271514318217955735.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271518353503870265.html +175 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271519099724216470.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271519124515598988.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271519565062036130.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-20131227151956788730482.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271520596747460049.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271521071461923825.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271522043068145141.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271522046336876738.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271528279956840950.html +114 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271528309526479429.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271530093771347047.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271547306806749083.html +132 -0
- data/spec/dummy_app/tmp/capybara/capybara-201312271547354314836403.html +114 -0
- data/spec/integration/basic/bulk_edit/basepack_basic_bulk_edit_spec.rb +149 -0
- data/spec/integration/basic/create/basepack_basic_create_spec.rb +124 -0
- data/spec/integration/basic/destroy/basepack_basic_destroy_spec.rb +61 -0
- data/spec/integration/basic/edit/basepack_basic_edit_spec.rb +64 -0
- data/spec/integration/basic/list/basepack_basic_list_spec.rb +566 -0
- data/spec/integration/basic/list/basepack_bulk_actions_spec.rb +128 -0
- data/spec/integration/basic/merge/basepack_basic_merge_spec.rb +18 -0
- data/spec/integration/basic/new/basepack_basic_new_spec.rb +96 -0
- data/spec/integration/basic/show/basepack_basic_show_spec.rb +317 -0
- data/spec/integration/basic/update/basepack_basic_update_spec.rb +54 -0
- data/spec/spec_helper.rb +69 -0
- data/spec/support/basepack_helper.rb +66 -0
- data/spec/support/devise.rb +3 -0
- metadata +1794 -0
@@ -0,0 +1,766 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
module Basepack
|
3
|
+
class BaseController < InheritedResources::Base
|
4
|
+
class_attribute :__actions
|
5
|
+
self.__actions = InheritedResources::ACTIONS
|
6
|
+
|
7
|
+
before_filter :default_query, :only => [:index]
|
8
|
+
|
9
|
+
class << self
|
10
|
+
def create_custom_action(resource_or_collection, action)
|
11
|
+
super
|
12
|
+
self.__actions += [action.to_sym]
|
13
|
+
end
|
14
|
+
|
15
|
+
# Copied from inherited_resources for support of custom actions. Defines wich actions will be inherited from the inherited controller.
|
16
|
+
# Syntax is borrowed from resource_controller.
|
17
|
+
#
|
18
|
+
# actions :index, :show, :edit
|
19
|
+
# actions :all, :except => :index
|
20
|
+
#
|
21
|
+
def actions(*actions_to_keep)
|
22
|
+
raise ArgumentError, 'Wrong number of arguments. You have to provide which actions you want to keep.' if actions_to_keep.empty?
|
23
|
+
|
24
|
+
options = actions_to_keep.extract_options!
|
25
|
+
actions_to_remove = Array(options[:except])
|
26
|
+
actions_to_remove += __actions - actions_to_keep.map { |a| a.to_sym } unless actions_to_keep.first == :all
|
27
|
+
actions_to_remove.map! { |a| a.to_sym }.uniq!
|
28
|
+
(instance_methods.map { |m| m.to_sym } & actions_to_remove).each do |action|
|
29
|
+
undef_method action, "#{action}!"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
respond_to :html
|
35
|
+
with_role :default # InheritedResources
|
36
|
+
defaults route_prefix: nil
|
37
|
+
check_authorization # CanCan
|
38
|
+
|
39
|
+
helper_method :resource_config, :return_to_path, :collection_action?, :route_prefix,
|
40
|
+
:chain, :title_params, :resource_filter, :default_query_params,
|
41
|
+
:build_resource,
|
42
|
+
:query_params,
|
43
|
+
:list_form, :show_form, :query_form, :edit_form,
|
44
|
+
:bulk_edit_form,
|
45
|
+
:export_form, :diff_form, :list_form_for, :show_form_for,
|
46
|
+
:query_form_for, :edit_form_for, :diff_form_for,
|
47
|
+
:export_form_for, :bulk_edit_form_for,
|
48
|
+
:resource2
|
49
|
+
|
50
|
+
custom_actions collection: [
|
51
|
+
:options,
|
52
|
+
:query,
|
53
|
+
:export,
|
54
|
+
:taggings,
|
55
|
+
:bulk_edit,
|
56
|
+
:bulk_update,
|
57
|
+
:bulk_delete
|
58
|
+
]
|
59
|
+
|
60
|
+
|
61
|
+
# Used to set default query (default fiter)
|
62
|
+
# It is called by before_filter. To define default custom filter
|
63
|
+
# redefine method default_query_params
|
64
|
+
|
65
|
+
def default_query
|
66
|
+
return if default_query_params.nil? or default_query_params.empty?
|
67
|
+
redirect_to query_resources_path(default_query_params) unless params[:f]
|
68
|
+
end
|
69
|
+
|
70
|
+
# returns the hash of default query params
|
71
|
+
# redefine in sub-classes to customize the default filter
|
72
|
+
def default_query_params
|
73
|
+
nil
|
74
|
+
end
|
75
|
+
|
76
|
+
|
77
|
+
def index(options={}, &block)
|
78
|
+
block ||= proc do |format|
|
79
|
+
format.html do
|
80
|
+
render :index # index is also called from query action
|
81
|
+
end
|
82
|
+
|
83
|
+
format.json do
|
84
|
+
schema = export_form.schema_from_params(params[:schema])
|
85
|
+
send_export_data(header: '[', footer: ']') do |object, i|
|
86
|
+
"#{',' if i > 0}#{object.to_json(schema)}"
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
format.xml do
|
91
|
+
schema = {skip_instruct: true}.reverse_merge(export_form.schema_from_params(params[:schema]))
|
92
|
+
send_export_data(
|
93
|
+
header: %Q{<?xml version="1.0" encoding="UTF-8"?>\n<#{resource_class.model_name.plural} type="array">\n},
|
94
|
+
footer: %Q{</#{resource_class.model_name.plural}>}
|
95
|
+
) do |object, i|
|
96
|
+
object.to_xml(schema)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
format.csv do
|
101
|
+
form = export_form
|
102
|
+
fields = form.fields_from_params(params[:schema])
|
103
|
+
csv_options = params[:csv_options] || {}
|
104
|
+
options = {encoding: 'UTF-8', col_sep: csv_options[:col_sep].presence || Basepack::Settings.export.default_col_sep}
|
105
|
+
header = csv_options[:skip_header] == 'true' ? '' : CSV.generate_line(form.csv_header(fields), options)
|
106
|
+
|
107
|
+
send_export_data(header: header) do |object, i|
|
108
|
+
CSV.generate_line(form.csv_row_for_resource(object, fields), options)
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
super(options, &block)
|
113
|
+
end
|
114
|
+
alias :index! :index
|
115
|
+
protected :index!
|
116
|
+
|
117
|
+
def update(options={}, &block)
|
118
|
+
super(options.reverse_merge(notice: message_edit_done), &block)
|
119
|
+
end
|
120
|
+
alias :update! :update
|
121
|
+
protected :update!
|
122
|
+
|
123
|
+
def create(options={}, &block)
|
124
|
+
super(options.reverse_merge(notice: message_new_done), &block)
|
125
|
+
end
|
126
|
+
alias :create! :create
|
127
|
+
protected :create!
|
128
|
+
|
129
|
+
def destroy(options={}, &block)
|
130
|
+
super(options.reverse_merge(notice: message_destroy_done), &block)
|
131
|
+
end
|
132
|
+
alias :destroy! :destroy
|
133
|
+
protected :destroy!
|
134
|
+
|
135
|
+
def options(options={})
|
136
|
+
primary_key = resource_class.primary_key
|
137
|
+
response = (options[:collection] || collection).map do |object|
|
138
|
+
{
|
139
|
+
:id => object.send(primary_key),
|
140
|
+
:text => ERB::Util.html_escape(object.to_details_label),
|
141
|
+
}
|
142
|
+
end
|
143
|
+
render :json => response
|
144
|
+
end
|
145
|
+
alias :options! :options
|
146
|
+
protected :options!
|
147
|
+
|
148
|
+
# [GET,POST] /resources/query
|
149
|
+
def query
|
150
|
+
filter_class_name = Basepack::Settings.filters.model_name
|
151
|
+
if filter_class_name.present? and params[:filter_name].present?
|
152
|
+
filter_class = filter_class_name.constantize
|
153
|
+
filter = filter_class.new(
|
154
|
+
name: params[:filter_name],
|
155
|
+
filter: params[:ql] || query_form.conditions_to_ql,
|
156
|
+
filter_type: resource_class.to_s
|
157
|
+
)
|
158
|
+
filter.assign_attributes(current_ability.attributes_for(:create, filter_class))
|
159
|
+
if filter.save
|
160
|
+
flash.now[:notice] = message_new_done(Basepack::Utils.model_config(filter_class).label)
|
161
|
+
else
|
162
|
+
flash.now[:error] = I18n.t :error_filter, scope: [:misc]
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
if request.xhr?
|
167
|
+
render partial: "query"
|
168
|
+
else
|
169
|
+
index
|
170
|
+
end
|
171
|
+
end
|
172
|
+
alias :query! :query
|
173
|
+
protected :query!
|
174
|
+
|
175
|
+
# [GET,POST] /resources/export
|
176
|
+
def export
|
177
|
+
if format = params[:json] && :json || params[:csv] && :csv || params[:xml] && :xml
|
178
|
+
request.format = format
|
179
|
+
index
|
180
|
+
else
|
181
|
+
render
|
182
|
+
end
|
183
|
+
end
|
184
|
+
alias :export! :export
|
185
|
+
protected :export!
|
186
|
+
|
187
|
+
# [GET] /resources/:id/diff/:id2
|
188
|
+
def diff
|
189
|
+
@resource2 = resource2
|
190
|
+
respond_with(chain)
|
191
|
+
end
|
192
|
+
alias :diff! :diff
|
193
|
+
protected :diff!
|
194
|
+
|
195
|
+
# [POST] /resources/:id/diff/:id2
|
196
|
+
def merge(options = {}, &block)
|
197
|
+
authorize!(:update, resource) # CanCan
|
198
|
+
|
199
|
+
@resource = resource
|
200
|
+
@resource2 = resource2
|
201
|
+
merge = params[:merge]
|
202
|
+
|
203
|
+
merge.each do |key, val|
|
204
|
+
if val == "right"
|
205
|
+
resource[key] = @resource2[key]
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
resource.save
|
210
|
+
options[:notice] ||= message_edit_done
|
211
|
+
|
212
|
+
respond_with(*with_chain(resource), options, &block)
|
213
|
+
end
|
214
|
+
alias :merge! :merge
|
215
|
+
protected :merge!
|
216
|
+
|
217
|
+
# [DELETE] /resources/bulk_delete
|
218
|
+
def bulk_delete(options = {}, &block)
|
219
|
+
unless params[:ids]
|
220
|
+
redirect_to collection_url
|
221
|
+
return
|
222
|
+
end
|
223
|
+
|
224
|
+
ids = params[:ids].split(',')
|
225
|
+
col = collection_without_pagination.accessible_by(current_ability,
|
226
|
+
:destroy).where(id: ids)
|
227
|
+
|
228
|
+
ret = col.destroy_all
|
229
|
+
|
230
|
+
destroyed_count = ret.count
|
231
|
+
not_destroyed_count = ids.count - destroyed_count
|
232
|
+
destroyed_message = "#{destroyed_count}
|
233
|
+
#{resource_class.model_name.human(count: destroyed_count)}"
|
234
|
+
|
235
|
+
if not_destroyed_count == 0
|
236
|
+
flash[:success] = t("admin.flash.successful",
|
237
|
+
name: destroyed_message,
|
238
|
+
action: t("admin.actions.delete.done"))
|
239
|
+
else
|
240
|
+
message = ", #{not_destroyed_count}
|
241
|
+
#{resource_class.model_name.human(count: not_destroyed_count)}"
|
242
|
+
|
243
|
+
flash[:error] = t("admin.flash.successful",
|
244
|
+
name: destroyed_message,
|
245
|
+
action: t("admin.actions.delete.done"))
|
246
|
+
flash[:error] << t("admin.flash.error", name: message,
|
247
|
+
action: t("admin.actions.delete.done"))
|
248
|
+
end
|
249
|
+
|
250
|
+
redirect_to collection_url
|
251
|
+
end
|
252
|
+
|
253
|
+
# Bulk_edit shows form for bulk editing items (edit multiple items at one)
|
254
|
+
# Forms look like normal edit form, but for the fields where you can set
|
255
|
+
# several values (has_and_belongs_to_many, has_many with through, tags, etc.)
|
256
|
+
# the form shows possibilites for add/delete items as well. The particular fields
|
257
|
+
# partials are defined in app/views/forms/bulk_edit basepack directiry.
|
258
|
+
#
|
259
|
+
# You can configure a field input by defining bulk_edit_partion in the field's
|
260
|
+
# configuration.
|
261
|
+
#
|
262
|
+
# If the form's field is blank, then the attribute in the model is not changed
|
263
|
+
# because of that the validation on presence is excluded.
|
264
|
+
#
|
265
|
+
# I dont know how to check if the form is valid, so I allways proseed updated
|
266
|
+
# and redirect to the index action (and show proper notice/error on the screen).
|
267
|
+
#
|
268
|
+
# The defaut action for extend fields should be configured by *bulk_edit* accessors
|
269
|
+
# in the model. For example:
|
270
|
+
#
|
271
|
+
# def bulk_edit
|
272
|
+
# @bulk_edit ||= OpenStruct.new
|
273
|
+
# @ddbulk_edit.my_habtml_relation_ids = 'delete'
|
274
|
+
# @bulk_edit
|
275
|
+
# end
|
276
|
+
#
|
277
|
+
# # following method should be useful only for rendering the form again
|
278
|
+
# # currently there is no such workflow.
|
279
|
+
# def bulk_edit=(fields)
|
280
|
+
# @bulk_edit = OpenStruct.new(fields)
|
281
|
+
# end
|
282
|
+
#
|
283
|
+
# For customizing particular behaviour for field action on the model you
|
284
|
+
# can define methods with naming "bulk_edit_<field_name>=", as
|
285
|
+
# demonstrates following example:
|
286
|
+
#
|
287
|
+
# def bulk_edit_tag_list=(action, new_value)
|
288
|
+
# value_arr = new_value.to_s.split(/,/)
|
289
|
+
# case action
|
290
|
+
# when 'add'
|
291
|
+
# self.tag_list += value_arr
|
292
|
+
# when 'assign'
|
293
|
+
# self.tag_list = new_value
|
294
|
+
# when 'delete'
|
295
|
+
# self.tag_list -= value_arr
|
296
|
+
# else
|
297
|
+
# raise ArgumentError, "Unknow bulk action: #{action.inspect}"
|
298
|
+
# end
|
299
|
+
# end
|
300
|
+
#
|
301
|
+
# TODO:
|
302
|
+
# * the URL contains filter params, which could overflow the GET length
|
303
|
+
# limit
|
304
|
+
# * filter like f[id_in]=... don't work
|
305
|
+
|
306
|
+
def bulk_edit(option = {}, &block)
|
307
|
+
# empty, all is done by 'custom_actions'
|
308
|
+
end
|
309
|
+
|
310
|
+
def bulk_update(options = {}, &block)
|
311
|
+
bulk_params = resource_build_bulk_params
|
312
|
+
bulk_values = build_resource_params.first.slice(*bulk_params.keys)
|
313
|
+
update_params = build_resource_params.first.except(*bulk_params.keys).reject { |k,v| v.blank? }
|
314
|
+
|
315
|
+
res = collection_without_pagination.accessible_by(current_ability, :update).reject do |object|
|
316
|
+
update_bulk_params(object, update_params, bulk_params, bulk_values)
|
317
|
+
end
|
318
|
+
|
319
|
+
if res.empty?
|
320
|
+
flash[:notice] ||= message_bulk_edit_done
|
321
|
+
redirect_to polymorphic_path(chain_with_class, query_params)
|
322
|
+
else
|
323
|
+
flash[:error] ||= message_bulk_edit_fail
|
324
|
+
filter_params = { "f[#{resource_class.primary_key}_in]" => res.map(&:id) }.reverse_merge(query_params)
|
325
|
+
redirect_to polymorphic_path(chain_with_class, filter_params)
|
326
|
+
end
|
327
|
+
end
|
328
|
+
alias :bulk_update! :bulk_update
|
329
|
+
|
330
|
+
def list_form_for(query_form)
|
331
|
+
form_factory_rails_admin(:list, Basepack::Forms::List, query_form.chain_with_class, query_form: query_form)
|
332
|
+
end
|
333
|
+
|
334
|
+
def show_form_for(resource_or_chain)
|
335
|
+
form_factory_rails_admin(:show, Basepack::Forms::Show, resource_or_chain)
|
336
|
+
end
|
337
|
+
|
338
|
+
def query_form_for(class_or_chain, scope, options = {})
|
339
|
+
Basepack::Forms::Factories::QueryRailsAdmin.new(view_context).new_form(
|
340
|
+
class_or_chain,
|
341
|
+
{ scope: scope }.reverse_merge!(options.reverse_merge(params: params, auth_object: current_ability))
|
342
|
+
)
|
343
|
+
end
|
344
|
+
|
345
|
+
def taggings(options={})
|
346
|
+
authorize!(action_name.to_sym, resource_class)
|
347
|
+
query_params = params.clone
|
348
|
+
|
349
|
+
#for inital data on selectbox change searching from id_tq to name_id
|
350
|
+
if (t = query_params['f']) and (t = t.delete 'id_eq')
|
351
|
+
query_params['f']['name_in'] = t.map! { |value| value.strip }
|
352
|
+
end
|
353
|
+
#add filter to search only on proper type
|
354
|
+
query_params['f'] ||= {}
|
355
|
+
query_params['f']['taggings_taggable_type_eq'] = resource_class.to_s
|
356
|
+
|
357
|
+
query_form = query_form_for(
|
358
|
+
ActsAsTaggableOn::Tag,
|
359
|
+
ActsAsTaggableOn::Tag.all.accessible_by(current_ability),
|
360
|
+
params: query_params
|
361
|
+
)
|
362
|
+
|
363
|
+
response = query_form.collection.map do |object|
|
364
|
+
{
|
365
|
+
:id => ERB::Util.html_escape(object.name),
|
366
|
+
:text => ERB::Util.html_escape(object.name),
|
367
|
+
}
|
368
|
+
end
|
369
|
+
render :json => response
|
370
|
+
end
|
371
|
+
alias :taggings! :taggings
|
372
|
+
protected :taggings!
|
373
|
+
|
374
|
+
def edit_form_for(resource_or_chain, options = {})
|
375
|
+
res = Array.wrap(resource_or_chain).last
|
376
|
+
section = (res.is_a?(Class) or res.new_record?) ? :create : :update
|
377
|
+
form_factory_rails_admin(section, Basepack::Forms::Edit, resource_or_chain, options)
|
378
|
+
end
|
379
|
+
|
380
|
+
def diff_form_for(resource, resource2, options = {}) # resource or chain
|
381
|
+
options[:method] = :post
|
382
|
+
Basepack::Forms::Factories::RailsAdmin.new(:edit, view_context, Basepack::Forms::Diff, Basepack::Forms::Groups::Diff).new_form(resource, resource2, options)
|
383
|
+
end
|
384
|
+
|
385
|
+
def export_form_for(query_form)
|
386
|
+
form_factory_rails_admin(:export, Basepack::Forms::Export, query_form.chain_with_class, query_form: query_form)
|
387
|
+
end
|
388
|
+
|
389
|
+
def bulk_edit_form_for(resource_or_chain, options = {})
|
390
|
+
form_factory_rails_admin(:bulk_edit, Basepack::Forms::BulkEdit, resource_or_chain, options)
|
391
|
+
end
|
392
|
+
|
393
|
+
def filters
|
394
|
+
collection #just for authorize resource
|
395
|
+
redirect_to polymorphic_path(Basepack::Settings.filters.model_name.constantize, 'f[filter_type_eq]' => resource_class)
|
396
|
+
end
|
397
|
+
|
398
|
+
protected
|
399
|
+
|
400
|
+
def message_edit_done(name = resource_config.label)
|
401
|
+
t("admin.flash.successful", :name => name, :action => t("admin.actions.edit.done"))
|
402
|
+
end
|
403
|
+
|
404
|
+
def message_new_done(name = resource_config.label)
|
405
|
+
t("admin.flash.successful", :name => name, :action => t("admin.actions.new.done"))
|
406
|
+
end
|
407
|
+
|
408
|
+
def message_destroy_done(name = resource_config.label)
|
409
|
+
t("admin.flash.successful", :name => name, :action => t("admin.actions.delete.done"))
|
410
|
+
end
|
411
|
+
|
412
|
+
def message_bulk_edit_done(name = resource_config.label)
|
413
|
+
t("admin.flash.successful", :name => name, :action => t("basepack.actions.bulk_edit.done"))
|
414
|
+
end
|
415
|
+
|
416
|
+
def message_bulk_edit_fail(model_label_plural = resource_config.label_plural)
|
417
|
+
t("basepack.flash.error_on_items", :model_label_plural => model_label_plural, :action => t("basepack.actions.bulk_edit.done"))
|
418
|
+
end
|
419
|
+
|
420
|
+
def route_prefix
|
421
|
+
@route_prefix ||= resources_configuration[:self][:route_prefix]
|
422
|
+
end
|
423
|
+
|
424
|
+
# for InheritedResources
|
425
|
+
def collection
|
426
|
+
get_collection_ivar || begin
|
427
|
+
form = query_form
|
428
|
+
@resource_filter = form.resource_filter
|
429
|
+
set_collection_ivar(form.collection)
|
430
|
+
end
|
431
|
+
end
|
432
|
+
|
433
|
+
def collection_without_pagination
|
434
|
+
collection.offset(nil).limit(nil)
|
435
|
+
end
|
436
|
+
|
437
|
+
# for InheritedResources
|
438
|
+
def resource
|
439
|
+
get_resource_ivar || begin
|
440
|
+
o = end_of_association_chain.find(params[:id])
|
441
|
+
authorize!(action_name.to_sym, o) # CanCan
|
442
|
+
set_resource_ivar(o)
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
# for diff
|
447
|
+
def resource2
|
448
|
+
@resource2 ||= begin
|
449
|
+
resource2 = params[:id2].present? ? end_of_association_chain.find_by_id(params[:id2].to_i) : resource.copied_from
|
450
|
+
authorize!(action_name.to_sym, resource2) if resource2 # CanCan
|
451
|
+
resource2
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
455
|
+
# for InheritedResources
|
456
|
+
def build_resource
|
457
|
+
get_resource_ivar || begin
|
458
|
+
object = end_of_association_chain.send(method_for_build)
|
459
|
+
set_resource_ivar(object) # must be first - edit_form (called from resource_params) depends on it
|
460
|
+
object.assign_attributes(current_ability.attributes_for(action_name.to_sym, resource_class)) # CanCan TODO - also for nested forms
|
461
|
+
|
462
|
+
object.assign_attributes(*resource_params)
|
463
|
+
authorize!(action_name.to_sym, object)
|
464
|
+
yield(object) if block_given?
|
465
|
+
object
|
466
|
+
end
|
467
|
+
end
|
468
|
+
alias :build_resource! :build_resource
|
469
|
+
|
470
|
+
# for InheritedResources
|
471
|
+
def build_resource_params
|
472
|
+
# disabled second parameter for Rails 4
|
473
|
+
[super.first]
|
474
|
+
end
|
475
|
+
|
476
|
+
# for InheritedResources
|
477
|
+
def permitted_params
|
478
|
+
_params = params[resource_request_name] || params[resource_instance_name]
|
479
|
+
return params if _params.blank?
|
480
|
+
{ resource_instance_name => edit_form.permit_params(_params) }
|
481
|
+
end
|
482
|
+
|
483
|
+
def resource_config
|
484
|
+
@resource_config ||= Basepack::Utils.model_config(resource_class)
|
485
|
+
end
|
486
|
+
|
487
|
+
def resource_filter
|
488
|
+
@resource_filter || begin
|
489
|
+
collection
|
490
|
+
@resource_filter
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
494
|
+
def collection_includes
|
495
|
+
resource_config.fields.select do |f|
|
496
|
+
f.type.in?([:belongs_to_association, :has_one_association]) && !f.polymorphic?
|
497
|
+
end.map {|f| f.association[:name] }
|
498
|
+
end
|
499
|
+
|
500
|
+
def filterql_options
|
501
|
+
nil
|
502
|
+
end
|
503
|
+
|
504
|
+
def return_to_path
|
505
|
+
params[:return_to] if
|
506
|
+
params[:return_to].presence and
|
507
|
+
params[:return_to] =~ %r{\A\/[a-z]}i and
|
508
|
+
params[:return_to] != request.fullpath
|
509
|
+
end
|
510
|
+
|
511
|
+
# for InheritedResources
|
512
|
+
def smart_resource_url
|
513
|
+
return_to_path || super
|
514
|
+
end
|
515
|
+
|
516
|
+
# for InheritedResources
|
517
|
+
def smart_collection_url
|
518
|
+
return_to_path || super
|
519
|
+
end
|
520
|
+
|
521
|
+
def collection_action?
|
522
|
+
params[:id].nil?
|
523
|
+
end
|
524
|
+
|
525
|
+
def chain
|
526
|
+
collection_action? ? association_chain + [build_resource] : association_chain + [resource]
|
527
|
+
end
|
528
|
+
|
529
|
+
def chain_with_class
|
530
|
+
association_chain + [resource_class]
|
531
|
+
end
|
532
|
+
|
533
|
+
def title_params
|
534
|
+
@title_params || begin
|
535
|
+
case action_name.to_sym
|
536
|
+
when :index
|
537
|
+
resource_class
|
538
|
+
when :create, :new
|
539
|
+
[[resource,
|
540
|
+
Utils.translate(resource, :new, 'breadcrumb')]]
|
541
|
+
when :edit, :update
|
542
|
+
[[resource,
|
543
|
+
Utils.translate(resource, :edit, 'breadcrumb')]]
|
544
|
+
when :show
|
545
|
+
resource
|
546
|
+
when :export
|
547
|
+
[[resource_class,
|
548
|
+
Utils.translate(resource_class, :export, 'breadcrumb')]]
|
549
|
+
when :bulk_edit
|
550
|
+
[[resource_class,
|
551
|
+
Utils.translate(resource_class, :bulk_edit, 'breadcrumb')]]
|
552
|
+
else
|
553
|
+
collection_action? ? resource_class : resource
|
554
|
+
end
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
#retruns paramters used by filter and paginator (for generation of link on the same page)
|
559
|
+
def query_params
|
560
|
+
query_form.params
|
561
|
+
end
|
562
|
+
|
563
|
+
def send_export_data(options = {}, &block)
|
564
|
+
method = :each
|
565
|
+
|
566
|
+
if params[:send_data]
|
567
|
+
set_file_headers filename: "#{resource_class.model_name.plural}_#{DateTime.now.strftime("%Y-%m-%d_%Hh%Mm%S")}.#{request.format.to_sym}"
|
568
|
+
method = :find_each if params[:send_data] == 'all' and request.post?
|
569
|
+
end
|
570
|
+
|
571
|
+
self.response_body = Enumerator.new do |y|
|
572
|
+
y << options[:header] if options[:header]
|
573
|
+
i = 0
|
574
|
+
collection.send(method) do |object|
|
575
|
+
y << yield(object, i)
|
576
|
+
i += 1
|
577
|
+
end
|
578
|
+
y << options[:footer] if options[:footer]
|
579
|
+
end
|
580
|
+
end
|
581
|
+
|
582
|
+
def set_file_headers(options)
|
583
|
+
type_provided = options.has_key?(:type)
|
584
|
+
|
585
|
+
options = options.reverse_merge({ :type => 'application/octet-stream', :disposition => 'attachment' })
|
586
|
+
|
587
|
+
[:type, :disposition].each do |arg|
|
588
|
+
raise ArgumentError, ":#{arg} option required" if options[arg].nil?
|
589
|
+
end
|
590
|
+
|
591
|
+
disposition = options[:disposition].to_s
|
592
|
+
disposition += %(; filename="#{options[:filename]}") if options[:filename]
|
593
|
+
|
594
|
+
content_type = options[:type]
|
595
|
+
|
596
|
+
if content_type.is_a?(Symbol)
|
597
|
+
extension = Mime[content_type]
|
598
|
+
raise ArgumentError, "Unknown MIME type #{options[:type]}" unless extension
|
599
|
+
self.content_type = extension
|
600
|
+
else
|
601
|
+
if !type_provided && options[:filename]
|
602
|
+
# If type wasn't provided, try guessing from file extension.
|
603
|
+
content_type = Mime::Type.lookup_by_extension(File.extname(options[:filename]).downcase.tr('.','')) || content_type
|
604
|
+
end
|
605
|
+
self.content_type = content_type
|
606
|
+
end
|
607
|
+
|
608
|
+
headers.merge!(
|
609
|
+
'Content-Disposition' => disposition,
|
610
|
+
'Content-Transfer-Encoding' => 'binary'
|
611
|
+
)
|
612
|
+
|
613
|
+
response.sending_file = true
|
614
|
+
|
615
|
+
# Fix a problem with IE 6.0 on opening downloaded files:
|
616
|
+
# If Cache-Control: no-cache is set (which Rails does by default),
|
617
|
+
# IE removes the file it just downloaded from its cache immediately
|
618
|
+
# after it displays the "open/save" dialog, which means that if you
|
619
|
+
# hit "open" the file isn't there anymore when the application that
|
620
|
+
# is called for handling the download is run, so let's workaround that
|
621
|
+
response.cache_control[:public] ||= false
|
622
|
+
end
|
623
|
+
|
624
|
+
def update_bulk_params(object, attributes, bulk_params, bulk_values)
|
625
|
+
object.assign_attributes(attributes)
|
626
|
+
bulk_params.each do |bulk_key, bulk_action|
|
627
|
+
|
628
|
+
custom_action = "bulk_edit_#{bulk_key}=".intern
|
629
|
+
if object.respond_to?(custom_action)
|
630
|
+
object.send(custom_action, bulk_action, bulk_values[bulk_key])
|
631
|
+
else
|
632
|
+
value = bulk_values[bulk_key]
|
633
|
+
if bulk_action == 'assign'
|
634
|
+
#empty, value is already set above
|
635
|
+
elsif bulk_action == 'add'
|
636
|
+
value = object.send(bulk_key.intern) + value.map { |t| t.to_i }
|
637
|
+
elsif bulk_action == 'delete'
|
638
|
+
value = object.send(bulk_key.intern) - value.map { |t| t.to_i }
|
639
|
+
else
|
640
|
+
raise ArgumentError, "Unknow bulk action: #{bulk_action.inspect}"
|
641
|
+
end
|
642
|
+
object.send("#{bulk_key}=".intern, value)
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
object.save
|
647
|
+
end
|
648
|
+
|
649
|
+
|
650
|
+
# Returns bulk_acions for fields for which is possible
|
651
|
+
# to choose action (e.g. add/delete/assing) in bulk_edit form
|
652
|
+
#
|
653
|
+
# Returns hash, keys are the field names and values are the actions
|
654
|
+
#
|
655
|
+
def resource_build_bulk_params
|
656
|
+
_params = params[resource_request_name] || params[resource_instance_name]
|
657
|
+
bulk_params = _params.blank? ? {} : _params[:bulk_edit]
|
658
|
+
bulk_params.slice(*permitted_params[resource_instance_name].keys)
|
659
|
+
end
|
660
|
+
protected :resource_build_bulk_params
|
661
|
+
|
662
|
+
|
663
|
+
# Forms
|
664
|
+
|
665
|
+
def list_form
|
666
|
+
list_form!
|
667
|
+
end
|
668
|
+
|
669
|
+
def list_form!(&block)
|
670
|
+
@list_form ||= begin
|
671
|
+
form = list_form_for(query_form)
|
672
|
+
form.configure(&block) if block
|
673
|
+
form
|
674
|
+
end
|
675
|
+
end
|
676
|
+
|
677
|
+
def show_form
|
678
|
+
show_form!
|
679
|
+
end
|
680
|
+
|
681
|
+
def show_form!(&block)
|
682
|
+
@show_form ||= begin
|
683
|
+
form = show_form_for(chain)
|
684
|
+
form.configure(&block) if block
|
685
|
+
form
|
686
|
+
end
|
687
|
+
end
|
688
|
+
|
689
|
+
def query_form
|
690
|
+
query_form!
|
691
|
+
end
|
692
|
+
|
693
|
+
def query_form!(&block)
|
694
|
+
@query_form ||= begin
|
695
|
+
authorize!(action_name.to_sym, resource_class) # CanCan
|
696
|
+
form = query_form_for(
|
697
|
+
chain_with_class,
|
698
|
+
end_of_association_chain.accessible_by(current_ability, action_name.to_sym),
|
699
|
+
collection_includes: collection_includes,
|
700
|
+
filterql_options: filterql_options
|
701
|
+
)
|
702
|
+
form.configure(&block) if block
|
703
|
+
form
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
def edit_form
|
708
|
+
edit_form!
|
709
|
+
end
|
710
|
+
|
711
|
+
def edit_form!(&block)
|
712
|
+
@edit_form ||= begin
|
713
|
+
form = edit_form_for(chain, path: collection_action? ? collection_path : resource_path)
|
714
|
+
form.configure(&block) if block
|
715
|
+
form
|
716
|
+
end
|
717
|
+
end
|
718
|
+
|
719
|
+
def export_form
|
720
|
+
export_form!
|
721
|
+
end
|
722
|
+
|
723
|
+
def export_form!(&block)
|
724
|
+
@export_form ||= begin
|
725
|
+
authorize!(:export, resource_class)
|
726
|
+
form = export_form_for(query_form)
|
727
|
+
form.configure(&block) if block
|
728
|
+
form
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
def diff_form
|
733
|
+
diff_form!
|
734
|
+
end
|
735
|
+
|
736
|
+
def diff_form!(&block)
|
737
|
+
@diff_form ||= begin
|
738
|
+
authorize!(:diff, resource_class)
|
739
|
+
form = diff_form_for(chain, resource2, path: polymorphic_path([:merge, route_prefix, association_chain, resource].flatten, id2: resource2))
|
740
|
+
form.configure(&block) if block
|
741
|
+
form
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
def bulk_edit_form
|
746
|
+
bulk_edit_form!
|
747
|
+
end
|
748
|
+
|
749
|
+
def bulk_edit_form!(&block)
|
750
|
+
@bulk_edit_form ||= begin
|
751
|
+
form = bulk_edit_form_for(
|
752
|
+
chain,
|
753
|
+
query_form: query_form,
|
754
|
+
path: polymorphic_path([:bulk_update, route_prefix, association_chain, resource].flatten, query_form.params)
|
755
|
+
)
|
756
|
+
form.configure(&block) if block
|
757
|
+
form
|
758
|
+
end
|
759
|
+
end
|
760
|
+
|
761
|
+
def form_factory_rails_admin(section, form_class, *args)
|
762
|
+
Basepack::Forms::Factories::RailsAdmin.new(section, view_context, form_class).new_form(*args)
|
763
|
+
end
|
764
|
+
|
765
|
+
end
|
766
|
+
end
|