admin_invitable 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/app/assets/javascripts/admin_invitable/application.js +13 -0
- data/app/assets/stylesheets/admin_invitable/application.css +15 -0
- data/app/controllers/admin_invitable/application_controller.rb +4 -0
- data/app/helpers/admin_invitable/application_helper.rb +4 -0
- data/app/views/layouts/admin_invitable/application.html.erb +14 -0
- data/config/routes.rb +2 -0
- data/lib/admin_invitable.rb +4 -0
- data/lib/admin_invitable/activeadmin_invitable_patch.rb +17 -0
- data/lib/admin_invitable/engine.rb +14 -0
- data/lib/admin_invitable/version.rb +3 -0
- data/lib/generators/admin_invitable/install/install_generator.rb +8 -0
- data/lib/generators/admin_invitable/install/templates/active_admin_invitable_patch.rb +17 -0
- data/lib/generators/admin_invitable/install/templates/edit.html.erb +15 -0
- data/lib/tasks/admin_invitable_tasks.rake +4 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/admin/admin_user.rb +28 -0
- data/spec/dummy/app/admin/dashboard.rb +33 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js.coffee +1 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/active_admin.css.scss +17 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/common.css.scss +17 -0
- data/spec/dummy/app/controllers/application_controller.rb +6 -0
- data/spec/dummy/app/controllers/home_controller.rb +9 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/models/admin_user.rb +6 -0
- data/spec/dummy/app/views/devise/invitations/edit.html.erb +15 -0
- data/spec/dummy/app/views/devise/mailer/invitation_instructions.html.erb +7 -0
- data/spec/dummy/app/views/home/index.html.erb +8 -0
- data/spec/dummy/app/views/home/invite.html.erb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +39 -0
- data/spec/dummy/config/environments/production.rb +78 -0
- data/spec/dummy/config/environments/test.rb +39 -0
- data/spec/dummy/config/initializers/active_admin.rb +233 -0
- data/spec/dummy/config/initializers/assets.rb +8 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/spec/dummy/config/initializers/devise.rb +298 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/devise.en.yml +60 -0
- data/spec/dummy/config/locales/devise_invitable.en.yml +23 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +10 -0
- data/spec/dummy/config/secrets.yml +22 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20150410143721_devise_create_admin_users.rb +48 -0
- data/spec/dummy/db/migrate/20150410143725_create_active_admin_comments.rb +19 -0
- data/spec/dummy/db/migrate/20150410152955_devise_invitable_add_to_admin_users.rb +27 -0
- data/spec/dummy/db/schema.rb +60 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +7448 -0
- data/spec/dummy/log/test.log +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/factories/admin_users.rb +6 -0
- data/spec/dummy/spec/models/admin_user_spec.rb +5 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_convert-units.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_directional-values.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_font-source-declaration.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_gradient-positions-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-angle-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-gradient-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-positions-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-side-corner-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-arg-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-gradient-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-positions-parser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_render-gradients.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_shape-size-stripper.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_str-to-num.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_base.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_forms.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_header.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_mixins.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_typography.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/print.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_animation.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_appearance.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_backface-visibility.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_background-image.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_background.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_border-image.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_calc.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_columns.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_filter.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_flex-box.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_font-face.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_font-feature-settings.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_hidpi-media-query.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_hyphens.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_image-rendering.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_keyframes.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_linear-gradient.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_perspective.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_placeholder.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_radial-gradient.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_selection.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_text-decoration.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_transform.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_transition.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_user-select.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-color.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-radius.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-style.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-width.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_clearfix.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_ellipsis.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_font-stacks.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_hide-text.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_margin.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_padding.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_position.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_prefixer.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_retina-image.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_size.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_text-inputs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_timing-functions.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_triangle.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_word-wrap.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_asset-pipeline.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_prefixer.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_px-to-em.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/70f88ad5ef84b8629a842f19d03d8f08efe0cccf/_bourbon-deprecated-upcoming.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/70f88ad5ef84b8629a842f19d03d8f08efe0cccf/_bourbon.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/7bbf81849b100129577eff376b5a706ba65bcd58/active_admin.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/7bbf81849b100129577eff376b5a706ba65bcd58/common.css.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_all.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_gradients.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_reset.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_rounded.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_sections.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_shadows.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_typography.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_utilities.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_variables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_assign-inputs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_contains-falsy.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_contains.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-length.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-light.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-number.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-size.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_modular-scale.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_px-to-em.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_px-to-rem.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_shade.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_strip-units.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_tint.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_transition-property-name.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_unpack.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_batch_actions.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_blank_slates.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_breadcrumbs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_buttons.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_columns.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_comments.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_date_picker.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_dropdown_menu.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_flash_messages.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_grid.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_index_list.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_links.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_modal_dialog.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_pagination.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_panels.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_scopes.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_status_tags.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_table_tools.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_tables.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_tabs.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_unsupported_browser.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/d6f230b39bfd59350579552507cd99966fc1b840/_logged_out.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_footer.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_main_structure.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_title_bar.scssc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/020469b54d49d768044a4486a79fece8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/04271c7d6f2ec7114fb10cf710f46321 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/04815176b18d23ced953077cdab6c799 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/06a87bff2cb9efaeadd6488276b445fc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/08c61b97d4a06c9222e3d08b62994313 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0ac54315a65ae703ae5d971e1016bc93 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0b679a0c1686bd49d25d48d139370d2d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0de1bd69271e7685d9de91e1e693a030 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/11fcfa0f117b707749e41f3e3b6e46bd +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/12cbb653a7352092868719e2069339eb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/149f0d08df958fa01d609255de2d9d18 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1583a59b579664195aa64c5108d89aa5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/18e079d090a4a8937bdd7d2f590f68b8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1d26050d99e148af74ede15b69452543 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1e4153d3e4769f2e887128e6988e44bc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1faa07e4c9533faf6399a57e287e052d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/228d1c05e21e5f59b4d06c55c4c46cb9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2294f60e546ecf8241d95e6c2d8107f4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/229511278f4c1de83f6e9f27da569de3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/233492f5353faf10b3dbfedea7210136 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/244bb2d62aa9c3e642a1a1e2cf3219c3 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/25eab49d284bfc42167c93a7a866e3d0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2ad77ccae7e91adec676e572a0138600 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2d5495692330f027c9baff0880ea3e6a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2d9303155db25acdf0594c1be8c23802 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2e6efe9c42b17ddcbc206cb7029a6435 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f4f9c98b548235df0004a09e72dbd18 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/30b236cacb8e264758fd905b715f76a9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/314891a3c25acdf25910a2e234b3343a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3511cfc7c4f69a8218b6f3140f4d635f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/363234dc3dbbe6551ce44ea8631cffe6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/3b5dbef295b238e9b12706b4e6c1e56c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4378d5d313e990ba965c1f5b50dc65c7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/46e76755abb21a6f71c4bbf2bc064e63 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/48364c7ad6a724ba96ebdecd5c23d961 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/4976537d77bcfe181d91dc20d0ef235a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/54f65999781681ab7302a4176148a44a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/560c8c6915d818dd9078f9d5abc08c95 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5694e086784372d7dc031aef8a186e89 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5afa63f732e7b54174ce86b414c96a45 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5e97785b08efa9e0a2b154df29233cec +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5ee468c10fbb155f80790e7592cb2261 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/603404240ab126afdb4ed3427ae4f479 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/613f2488e8d9cc76126c19c787679b38 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/63b56a82917f26c09e67ef832a0cf88a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/64ff0d7d0db6558adb559b4831390964 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/673b8b56f420e08ef92f276ff20f2aa1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/68193f8d4666c5286a7daefeffddaf49 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/685e6c12f9d1aad28d5d644179c5ffcc +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6a88935019f4072a3649ed64f87a02fa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6d7ab8938ac4135132b6799cd6db4b7f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6d8120aef989110fe9a7cd9608405ae1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/6f09ac5a8305d2f277b9e85af612a68f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/72201ee3f24c81d28bafd04233662d81 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/77b562776eb4cf5ab2f7aa04695b82b9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/78713e886542acb6d61a3c068749d996 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7aa6ca65af176c54e4e7c93c8eee5a7f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/7d42c4b4476d50ca06de155753c226f0 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/82ce96f1660d7d8113f90a27221adbfa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/838ac605e801b1419abdb52a8e5690f7 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/83d4dff562d9e7a769fb390ebb012fb1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/84f74cda79e9721a46564d38f2c9ef6f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/857ecd2092cee11f740b3cf2e373ad2a +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8c7a809c7cfa10cda4fb6c3e6709e265 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8d2cee3bd1464d780af7a0828a9d58b1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/8fa0744ca1427da42da34f579c74524f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9349b215d839f1690e8afb1fbeddd993 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/949c1bc9c998c5bd6a0d9a1d6acd6ce4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9a26bfb0ac4b135a30ef7a524c72d89c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9ca1a92b91ce534571f030a61980a75e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/9dcb1c83e3b4617ecca45b5d3b81f60d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a19a5174bdccc410d938a7d1cfb733c9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/a5e1e40b6692e7376e4d6f88004726b2 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ad49f96f03d1961db2eab087ed3c7ea8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/af0b09b451f04ea0434a8b4fbbbdc1d4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b3f798f9c2d18a51416754512c4647e5 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b9dd292b009943b8e2270f73ebbedf74 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/bc20cbb537a9608646f5fd61ac4f5b6e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c066bb7fe16a5a31314af9c47ab1b302 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cbadbd4277993092f7c0ce14ae07a11d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ceff673e68832ab2e3abe291c4298def +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d4a873903abf86312424a5db5ffb76f9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d99126bb612976ba5bb4df6a531d475d +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d99c1222bcd183fa0fbcd4218c5b666b +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/de876f8ba8f92cd088d6c41c85734544 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/df621539f755316a56631aebe2748452 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e0d877dcc11792e84e84fec88785dfd1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e1f8f4c32f24742deee7c46e67d5faa8 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e36e14e0102484d227eae944dc5a8eae +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/e630082663266df770ad29b95678db0e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ea98bff2b4e53aa8c38bed3e8d736d99 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ed9f0de1b65ae8d7ef89087c83728461 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/edfd86f12b45145b31685a0c30fa5495 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ee3caca6fb45c569fc2e6e655323a5d9 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ee8a6c7b742067439aaea86a3b5450fa +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f1cd40a56fd4a69025d32ac56f8c7feb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f9050b378f735c446f0abeafb4f1a5ea +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/fb8b186d5bf0307f86f65fc787d2adeb +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ff9120f669a3145de76277b75c5d453a +0 -0
- data/spec/dummy/tmp/letter_opener/1428686575_fdb99d0/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428686668_0482815/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428686915_ba57edb/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428686926_7ba9ba8/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428687062_b792e50/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428690069_5d1db90/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428690803_ab5d590/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428690891_f1d55ef/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428691336_6ba2b51/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428691351_0d59f62/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428691994_5e9dffb/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428693295_0182997/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428693309_b6349c8/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428699512_11f1d8c/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428699533_1b290aa/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428699548_ea5f37d/rich.html +112 -0
- data/spec/dummy/tmp/letter_opener/1428699564_19f1e34/rich.html +112 -0
- data/spec/rails_helper.rb +22 -0
- data/spec/spec_helper.rb +78 -0
- metadata +765 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Version of your assets, change this if you want to expire all your assets.
|
4
|
+
Rails.application.config.assets.version = '1.0'
|
5
|
+
|
6
|
+
# Precompile additional assets.
|
7
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
8
|
+
# Rails.application.config.assets.precompile += %w( search.js )
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,298 @@
|
|
1
|
+
# Use this hook to configure devise mailer, warden hooks and so forth.
|
2
|
+
# Many of these configuration options can be set straight in your model.
|
3
|
+
Devise.setup do |config|
|
4
|
+
# The secret key used by Devise. Devise uses this key to generate
|
5
|
+
# random tokens. Changing this key will render invalid all existing
|
6
|
+
# confirmation, reset password and unlock tokens in the database.
|
7
|
+
# config.secret_key = '2955fa4bb843d7a6735f5e6c42eb3381a767ad77f5cd37f4903d64eba1873caa66bd5abfee5ac733c255eae9f8a356111389cb7468c61d144b4914f7d7decf47'
|
8
|
+
|
9
|
+
# ==> Mailer Configuration
|
10
|
+
# Configure the e-mail address which will be shown in Devise::Mailer,
|
11
|
+
# note that it will be overwritten if you use your own mailer class
|
12
|
+
# with default "from" parameter.
|
13
|
+
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
|
14
|
+
|
15
|
+
# Configure the class responsible to send e-mails.
|
16
|
+
# config.mailer = 'Devise::Mailer'
|
17
|
+
|
18
|
+
# ==> ORM configuration
|
19
|
+
# Load and configure the ORM. Supports :active_record (default) and
|
20
|
+
# :mongoid (bson_ext recommended) by default. Other ORMs may be
|
21
|
+
# available as additional gems.
|
22
|
+
require 'devise/orm/active_record'
|
23
|
+
|
24
|
+
# ==> Configuration for any authentication mechanism
|
25
|
+
# Configure which keys are used when authenticating a user. The default is
|
26
|
+
# just :email. You can configure it to use [:username, :subdomain], so for
|
27
|
+
# authenticating a user, both parameters are required. Remember that those
|
28
|
+
# parameters are used only when authenticating and not when retrieving from
|
29
|
+
# session. If you need permissions, you should implement that in a before filter.
|
30
|
+
# You can also supply a hash where the value is a boolean determining whether
|
31
|
+
# or not authentication should be aborted when the value is not present.
|
32
|
+
# config.authentication_keys = [ :email ]
|
33
|
+
|
34
|
+
# Configure parameters from the request object used for authentication. Each entry
|
35
|
+
# given should be a request method and it will automatically be passed to the
|
36
|
+
# find_for_authentication method and considered in your model lookup. For instance,
|
37
|
+
# if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
|
38
|
+
# The same considerations mentioned for authentication_keys also apply to request_keys.
|
39
|
+
# config.request_keys = []
|
40
|
+
|
41
|
+
# Configure which authentication keys should be case-insensitive.
|
42
|
+
# These keys will be downcased upon creating or modifying a user and when used
|
43
|
+
# to authenticate or find a user. Default is :email.
|
44
|
+
config.case_insensitive_keys = [ :email ]
|
45
|
+
|
46
|
+
# Configure which authentication keys should have whitespace stripped.
|
47
|
+
# These keys will have whitespace before and after removed upon creating or
|
48
|
+
# modifying a user and when used to authenticate or find a user. Default is :email.
|
49
|
+
config.strip_whitespace_keys = [ :email ]
|
50
|
+
|
51
|
+
# Tell if authentication through request.params is enabled. True by default.
|
52
|
+
# It can be set to an array that will enable params authentication only for the
|
53
|
+
# given strategies, for example, `config.params_authenticatable = [:database]` will
|
54
|
+
# enable it only for database (email + password) authentication.
|
55
|
+
# config.params_authenticatable = true
|
56
|
+
|
57
|
+
# Tell if authentication through HTTP Auth is enabled. False by default.
|
58
|
+
# It can be set to an array that will enable http authentication only for the
|
59
|
+
# given strategies, for example, `config.http_authenticatable = [:database]` will
|
60
|
+
# enable it only for database authentication. The supported strategies are:
|
61
|
+
# :database = Support basic authentication with authentication key + password
|
62
|
+
# config.http_authenticatable = false
|
63
|
+
|
64
|
+
# If 401 status code should be returned for AJAX requests. True by default.
|
65
|
+
# config.http_authenticatable_on_xhr = true
|
66
|
+
|
67
|
+
# The realm used in Http Basic Authentication. 'Application' by default.
|
68
|
+
# config.http_authentication_realm = 'Application'
|
69
|
+
|
70
|
+
# It will change confirmation, password recovery and other workflows
|
71
|
+
# to behave the same regardless if the e-mail provided was right or wrong.
|
72
|
+
# Does not affect registerable.
|
73
|
+
# config.paranoid = true
|
74
|
+
|
75
|
+
# By default Devise will store the user in session. You can skip storage for
|
76
|
+
# particular strategies by setting this option.
|
77
|
+
# Notice that if you are skipping storage for all authentication paths, you
|
78
|
+
# may want to disable generating routes to Devise's sessions controller by
|
79
|
+
# passing skip: :sessions to `devise_for` in your config/routes.rb
|
80
|
+
config.skip_session_storage = [:http_auth]
|
81
|
+
|
82
|
+
# By default, Devise cleans up the CSRF token on authentication to
|
83
|
+
# avoid CSRF token fixation attacks. This means that, when using AJAX
|
84
|
+
# requests for sign in and sign up, you need to get a new CSRF token
|
85
|
+
# from the server. You can disable this option at your own risk.
|
86
|
+
# config.clean_up_csrf_token_on_authentication = true
|
87
|
+
|
88
|
+
# ==> Configuration for :database_authenticatable
|
89
|
+
# For bcrypt, this is the cost for hashing the password and defaults to 10. If
|
90
|
+
# using other encryptors, it sets how many times you want the password re-encrypted.
|
91
|
+
#
|
92
|
+
# Limiting the stretches to just one in testing will increase the performance of
|
93
|
+
# your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
|
94
|
+
# a value less than 10 in other environments. Note that, for bcrypt (the default
|
95
|
+
# encryptor), the cost increases exponentially with the number of stretches (e.g.
|
96
|
+
# a value of 20 is already extremely slow: approx. 60 seconds for 1 calculation).
|
97
|
+
config.stretches = Rails.env.test? ? 1 : 10
|
98
|
+
|
99
|
+
# Setup a pepper to generate the encrypted password.
|
100
|
+
# config.pepper = '42146cddf6763d99c8e4a075b57def6c863e24afa438ec58043c338b74e0a4aaae0e9ea7f02af9bd1b3a3c7593eabe8fa147218f2614ddfa696b7c284af5c112'
|
101
|
+
|
102
|
+
# ==> Configuration for :invitable
|
103
|
+
# The period the generated invitation token is valid, after
|
104
|
+
# this period, the invited resource won't be able to accept the invitation.
|
105
|
+
# When invite_for is 0 (the default), the invitation won't expire.
|
106
|
+
# config.invite_for = 2.weeks
|
107
|
+
|
108
|
+
# Number of invitations users can send.
|
109
|
+
# - If invitation_limit is nil, there is no limit for invitations, users can
|
110
|
+
# send unlimited invitations, invitation_limit column is not used.
|
111
|
+
# - If invitation_limit is 0, users can't send invitations by default.
|
112
|
+
# - If invitation_limit n > 0, users can send n invitations.
|
113
|
+
# You can change invitation_limit column for some users so they can send more
|
114
|
+
# or less invitations, even with global invitation_limit = 0
|
115
|
+
# Default: nil
|
116
|
+
# config.invitation_limit = 5
|
117
|
+
|
118
|
+
# The key to be used to check existing users when sending an invitation
|
119
|
+
# and the regexp used to test it when validate_on_invite is not set.
|
120
|
+
# config.invite_key = {:email => /\A[^@]+@[^@]+\z/}
|
121
|
+
# config.invite_key = {:email => /\A[^@]+@[^@]+\z/, :username => nil}
|
122
|
+
|
123
|
+
# Flag that force a record to be valid before being actually invited
|
124
|
+
# Default: false
|
125
|
+
# config.validate_on_invite = true
|
126
|
+
|
127
|
+
# Resend invitation if user with invited status is invited again
|
128
|
+
# Default: true
|
129
|
+
# config.resend_invitation = false
|
130
|
+
|
131
|
+
# The class name of the inviting model. If this is nil,
|
132
|
+
# the #invited_by association is declared to be polymorphic.
|
133
|
+
# Default: nil
|
134
|
+
# config.invited_by_class_name = 'User'
|
135
|
+
|
136
|
+
# The column name used for counter_cache column. If this is nil,
|
137
|
+
# the #invited_by association is declared without counter_cache.
|
138
|
+
# Default: nil
|
139
|
+
# config.invited_by_counter_cache = :invitations_count
|
140
|
+
|
141
|
+
# ==> Configuration for :confirmable
|
142
|
+
# A period that the user is allowed to access the website even without
|
143
|
+
# confirming their account. For instance, if set to 2.days, the user will be
|
144
|
+
# able to access the website for two days without confirming their account,
|
145
|
+
# access will be blocked just in the third day. Default is 0.days, meaning
|
146
|
+
# the user cannot access the website without confirming their account.
|
147
|
+
# config.allow_unconfirmed_access_for = 2.days
|
148
|
+
|
149
|
+
# A period that the user is allowed to confirm their account before their
|
150
|
+
# token becomes invalid. For example, if set to 3.days, the user can confirm
|
151
|
+
# their account within 3 days after the mail was sent, but on the fourth day
|
152
|
+
# their account can't be confirmed with the token any more.
|
153
|
+
# Default is nil, meaning there is no restriction on how long a user can take
|
154
|
+
# before confirming their account.
|
155
|
+
# config.confirm_within = 3.days
|
156
|
+
|
157
|
+
# If true, requires any email changes to be confirmed (exactly the same way as
|
158
|
+
# initial account confirmation) to be applied. Requires additional unconfirmed_email
|
159
|
+
# db field (see migrations). Until confirmed, new email is stored in
|
160
|
+
# unconfirmed_email column, and copied to email column on successful confirmation.
|
161
|
+
config.reconfirmable = true
|
162
|
+
|
163
|
+
# Defines which key will be used when confirming an account
|
164
|
+
# config.confirmation_keys = [ :email ]
|
165
|
+
|
166
|
+
# ==> Configuration for :rememberable
|
167
|
+
# The time the user will be remembered without asking for credentials again.
|
168
|
+
# config.remember_for = 2.weeks
|
169
|
+
|
170
|
+
# Invalidates all the remember me tokens when the user signs out.
|
171
|
+
config.expire_all_remember_me_on_sign_out = true
|
172
|
+
|
173
|
+
# If true, extends the user's remember period when remembered via cookie.
|
174
|
+
# config.extend_remember_period = false
|
175
|
+
|
176
|
+
# Options to be passed to the created cookie. For instance, you can set
|
177
|
+
# secure: true in order to force SSL only cookies.
|
178
|
+
# config.rememberable_options = {}
|
179
|
+
|
180
|
+
# ==> Configuration for :validatable
|
181
|
+
# Range for password length.
|
182
|
+
config.password_length = 8..128
|
183
|
+
|
184
|
+
# Email regex used to validate email formats. It simply asserts that
|
185
|
+
# one (and only one) @ exists in the given string. This is mainly
|
186
|
+
# to give user feedback and not to assert the e-mail validity.
|
187
|
+
# config.email_regexp = /\A[^@]+@[^@]+\z/
|
188
|
+
|
189
|
+
# ==> Configuration for :timeoutable
|
190
|
+
# The time you want to timeout the user session without activity. After this
|
191
|
+
# time the user will be asked for credentials again. Default is 30 minutes.
|
192
|
+
# config.timeout_in = 30.minutes
|
193
|
+
|
194
|
+
# If true, expires auth token on session timeout.
|
195
|
+
# config.expire_auth_token_on_timeout = false
|
196
|
+
|
197
|
+
# ==> Configuration for :lockable
|
198
|
+
# Defines which strategy will be used to lock an account.
|
199
|
+
# :failed_attempts = Locks an account after a number of failed attempts to sign in.
|
200
|
+
# :none = No lock strategy. You should handle locking by yourself.
|
201
|
+
# config.lock_strategy = :failed_attempts
|
202
|
+
|
203
|
+
# Defines which key will be used when locking and unlocking an account
|
204
|
+
# config.unlock_keys = [ :email ]
|
205
|
+
|
206
|
+
# Defines which strategy will be used to unlock an account.
|
207
|
+
# :email = Sends an unlock link to the user email
|
208
|
+
# :time = Re-enables login after a certain amount of time (see :unlock_in below)
|
209
|
+
# :both = Enables both strategies
|
210
|
+
# :none = No unlock strategy. You should handle unlocking by yourself.
|
211
|
+
# config.unlock_strategy = :both
|
212
|
+
|
213
|
+
# Number of authentication tries before locking an account if lock_strategy
|
214
|
+
# is failed attempts.
|
215
|
+
# config.maximum_attempts = 20
|
216
|
+
|
217
|
+
# Time interval to unlock the account if :time is enabled as unlock_strategy.
|
218
|
+
# config.unlock_in = 1.hour
|
219
|
+
|
220
|
+
# Warn on the last attempt before the account is locked.
|
221
|
+
# config.last_attempt_warning = true
|
222
|
+
|
223
|
+
# ==> Configuration for :recoverable
|
224
|
+
#
|
225
|
+
# Defines which key will be used when recovering the password for an account
|
226
|
+
# config.reset_password_keys = [ :email ]
|
227
|
+
|
228
|
+
# Time interval you can reset your password with a reset password key.
|
229
|
+
# Don't put a too small interval or your users won't have the time to
|
230
|
+
# change their passwords.
|
231
|
+
config.reset_password_within = 6.hours
|
232
|
+
|
233
|
+
# ==> Configuration for :encryptable
|
234
|
+
# Allow you to use another encryption algorithm besides bcrypt (default). You can use
|
235
|
+
# :sha1, :sha512 or encryptors from others authentication tools as :clearance_sha1,
|
236
|
+
# :authlogic_sha512 (then you should set stretches above to 20 for default behavior)
|
237
|
+
# and :restful_authentication_sha1 (then you should set stretches to 10, and copy
|
238
|
+
# REST_AUTH_SITE_KEY to pepper).
|
239
|
+
#
|
240
|
+
# Require the `devise-encryptable` gem when using anything other than bcrypt
|
241
|
+
# config.encryptor = :sha512
|
242
|
+
|
243
|
+
# ==> Scopes configuration
|
244
|
+
# Turn scoped views on. Before rendering "sessions/new", it will first check for
|
245
|
+
# "users/sessions/new". It's turned off by default because it's slower if you
|
246
|
+
# are using only default views.
|
247
|
+
# config.scoped_views = false
|
248
|
+
|
249
|
+
# Configure the default scope given to Warden. By default it's the first
|
250
|
+
# devise role declared in your routes (usually :user).
|
251
|
+
# config.default_scope = :user
|
252
|
+
|
253
|
+
# Set this configuration to false if you want /users/sign_out to sign out
|
254
|
+
# only the current scope. By default, Devise signs out all scopes.
|
255
|
+
# config.sign_out_all_scopes = true
|
256
|
+
|
257
|
+
# ==> Navigation configuration
|
258
|
+
# Lists the formats that should be treated as navigational. Formats like
|
259
|
+
# :html, should redirect to the sign in page when the user does not have
|
260
|
+
# access, but formats like :xml or :json, should return 401.
|
261
|
+
#
|
262
|
+
# If you have any extra navigational formats, like :iphone or :mobile, you
|
263
|
+
# should add them to the navigational formats lists.
|
264
|
+
#
|
265
|
+
# The "*/*" below is required to match Internet Explorer requests.
|
266
|
+
# config.navigational_formats = ['*/*', :html]
|
267
|
+
|
268
|
+
# The default HTTP method used to sign out a resource. Default is :delete.
|
269
|
+
config.sign_out_via = :delete
|
270
|
+
|
271
|
+
# ==> OmniAuth
|
272
|
+
# Add a new OmniAuth provider. Check the wiki for more information on setting
|
273
|
+
# up on your models and hooks.
|
274
|
+
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'
|
275
|
+
|
276
|
+
# ==> Warden configuration
|
277
|
+
# If you want to use other strategies, that are not supported by Devise, or
|
278
|
+
# change the failure app, you can configure them inside the config.warden block.
|
279
|
+
#
|
280
|
+
# config.warden do |manager|
|
281
|
+
# manager.intercept_401 = false
|
282
|
+
# manager.default_strategies(scope: :user).unshift :some_external_strategy
|
283
|
+
# end
|
284
|
+
|
285
|
+
# ==> Mountable engine configurations
|
286
|
+
# When using Devise inside an engine, let's call it `MyEngine`, and this engine
|
287
|
+
# is mountable, there are some extra configurations to be taken into account.
|
288
|
+
# The following options are available, assuming the engine is mounted as:
|
289
|
+
#
|
290
|
+
# mount MyEngine, at: '/my_engine'
|
291
|
+
#
|
292
|
+
# The router that invoked `devise_for`, in the example above, would be:
|
293
|
+
# config.router_name = :my_engine
|
294
|
+
#
|
295
|
+
# When using omniauth, Devise cannot automatically set Omniauth path,
|
296
|
+
# so you need to do it manually. For the users scope, it would be:
|
297
|
+
# config.omniauth_path_prefix = '/my_engine/users/auth'
|
298
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
|
9
|
+
end
|
10
|
+
|
11
|
+
# To enable root element in JSON for ActiveRecord objects.
|
12
|
+
# ActiveSupport.on_load(:active_record) do
|
13
|
+
# self.include_root_in_json = true
|
14
|
+
# end
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
|
2
|
+
|
3
|
+
en:
|
4
|
+
devise:
|
5
|
+
confirmations:
|
6
|
+
confirmed: "Your email address has been successfully confirmed."
|
7
|
+
send_instructions: "You will receive an email with instructions for how to confirm your email address in a few minutes."
|
8
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive an email with instructions for how to confirm your email address in a few minutes."
|
9
|
+
failure:
|
10
|
+
already_authenticated: "You are already signed in."
|
11
|
+
inactive: "Your account is not activated yet."
|
12
|
+
invalid: "Invalid %{authentication_keys} or password."
|
13
|
+
locked: "Your account is locked."
|
14
|
+
last_attempt: "You have one more attempt before your account is locked."
|
15
|
+
not_found_in_database: "Invalid %{authentication_keys} or password."
|
16
|
+
timeout: "Your session expired. Please sign in again to continue."
|
17
|
+
unauthenticated: "You need to sign in or sign up before continuing."
|
18
|
+
unconfirmed: "You have to confirm your email address before continuing."
|
19
|
+
mailer:
|
20
|
+
confirmation_instructions:
|
21
|
+
subject: "Confirmation instructions"
|
22
|
+
reset_password_instructions:
|
23
|
+
subject: "Reset password instructions"
|
24
|
+
unlock_instructions:
|
25
|
+
subject: "Unlock instructions"
|
26
|
+
omniauth_callbacks:
|
27
|
+
failure: "Could not authenticate you from %{kind} because \"%{reason}\"."
|
28
|
+
success: "Successfully authenticated from %{kind} account."
|
29
|
+
passwords:
|
30
|
+
no_token: "You can't access this page without coming from a password reset email. If you do come from a password reset email, please make sure you used the full URL provided."
|
31
|
+
send_instructions: "You will receive an email with instructions on how to reset your password in a few minutes."
|
32
|
+
send_paranoid_instructions: "If your email address exists in our database, you will receive a password recovery link at your email address in a few minutes."
|
33
|
+
updated: "Your password has been changed successfully. You are now signed in."
|
34
|
+
updated_not_active: "Your password has been changed successfully."
|
35
|
+
registrations:
|
36
|
+
destroyed: "Bye! Your account has been successfully cancelled. We hope to see you again soon."
|
37
|
+
signed_up: "Welcome! You have signed up successfully."
|
38
|
+
signed_up_but_inactive: "You have signed up successfully. However, we could not sign you in because your account is not yet activated."
|
39
|
+
signed_up_but_locked: "You have signed up successfully. However, we could not sign you in because your account is locked."
|
40
|
+
signed_up_but_unconfirmed: "A message with a confirmation link has been sent to your email address. Please follow the link to activate your account."
|
41
|
+
update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and follow the confirm link to confirm your new email address."
|
42
|
+
updated: "Your account has been updated successfully."
|
43
|
+
sessions:
|
44
|
+
signed_in: "Signed in successfully."
|
45
|
+
signed_out: "Signed out successfully."
|
46
|
+
already_signed_out: "Signed out successfully."
|
47
|
+
unlocks:
|
48
|
+
send_instructions: "You will receive an email with instructions for how to unlock your account in a few minutes."
|
49
|
+
send_paranoid_instructions: "If your account exists, you will receive an email with instructions for how to unlock it in a few minutes."
|
50
|
+
unlocked: "Your account has been unlocked successfully. Please sign in to continue."
|
51
|
+
errors:
|
52
|
+
messages:
|
53
|
+
already_confirmed: "was already confirmed, please try signing in"
|
54
|
+
confirmation_period_expired: "needs to be confirmed within %{period}, please request a new one"
|
55
|
+
expired: "has expired, please request a new one"
|
56
|
+
not_found: "not found"
|
57
|
+
not_locked: "was not locked"
|
58
|
+
not_saved:
|
59
|
+
one: "1 error prohibited this %{resource} from being saved:"
|
60
|
+
other: "%{count} errors prohibited this %{resource} from being saved:"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
en:
|
2
|
+
devise:
|
3
|
+
failure:
|
4
|
+
invited: "You have a pending invitation, accept it to finish creating your account."
|
5
|
+
invitations:
|
6
|
+
send_instructions: "An invitation email has been sent to %{email}."
|
7
|
+
invitation_token_invalid: "The invitation token provided is not valid!"
|
8
|
+
updated: "Your password was set successfully. You are now signed in."
|
9
|
+
no_invitations_remaining: "No invitations remaining"
|
10
|
+
invitation_removed: "Your invitation was removed."
|
11
|
+
new:
|
12
|
+
header: "Send invitation"
|
13
|
+
submit_button: "Send an invitation"
|
14
|
+
edit:
|
15
|
+
header: "Set your password"
|
16
|
+
submit_button: "Set my password"
|
17
|
+
mailer:
|
18
|
+
invitation_instructions:
|
19
|
+
subject: "Invitation instructions"
|
20
|
+
hello: "Hello %{email}"
|
21
|
+
someone_invited_you: "Someone has invited you to %{url}, you can accept it through the link below."
|
22
|
+
accept: "Accept invitation"
|
23
|
+
ignore: "If you don't want to accept the invitation, please ignore this email.<br />Your account won't be created until you access the link above and set your password."
|