admin_invitable 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (321) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/javascripts/admin_invitable/application.js +13 -0
  5. data/app/assets/stylesheets/admin_invitable/application.css +15 -0
  6. data/app/controllers/admin_invitable/application_controller.rb +4 -0
  7. data/app/helpers/admin_invitable/application_helper.rb +4 -0
  8. data/app/views/layouts/admin_invitable/application.html.erb +14 -0
  9. data/config/routes.rb +2 -0
  10. data/lib/admin_invitable.rb +4 -0
  11. data/lib/admin_invitable/activeadmin_invitable_patch.rb +17 -0
  12. data/lib/admin_invitable/engine.rb +14 -0
  13. data/lib/admin_invitable/version.rb +3 -0
  14. data/lib/generators/admin_invitable/install/install_generator.rb +8 -0
  15. data/lib/generators/admin_invitable/install/templates/active_admin_invitable_patch.rb +17 -0
  16. data/lib/generators/admin_invitable/install/templates/edit.html.erb +15 -0
  17. data/lib/tasks/admin_invitable_tasks.rake +4 -0
  18. data/spec/dummy/README.rdoc +28 -0
  19. data/spec/dummy/Rakefile +6 -0
  20. data/spec/dummy/app/admin/admin_user.rb +28 -0
  21. data/spec/dummy/app/admin/dashboard.rb +33 -0
  22. data/spec/dummy/app/assets/javascripts/active_admin.js.coffee +1 -0
  23. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  24. data/spec/dummy/app/assets/stylesheets/active_admin.css.scss +17 -0
  25. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  26. data/spec/dummy/app/assets/stylesheets/common.css.scss +17 -0
  27. data/spec/dummy/app/controllers/application_controller.rb +6 -0
  28. data/spec/dummy/app/controllers/home_controller.rb +9 -0
  29. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  30. data/spec/dummy/app/models/admin_user.rb +6 -0
  31. data/spec/dummy/app/views/devise/invitations/edit.html.erb +15 -0
  32. data/spec/dummy/app/views/devise/mailer/invitation_instructions.html.erb +7 -0
  33. data/spec/dummy/app/views/home/index.html.erb +8 -0
  34. data/spec/dummy/app/views/home/invite.html.erb +3 -0
  35. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  36. data/spec/dummy/bin/bundle +3 -0
  37. data/spec/dummy/bin/rails +4 -0
  38. data/spec/dummy/bin/rake +4 -0
  39. data/spec/dummy/config.ru +4 -0
  40. data/spec/dummy/config/application.rb +23 -0
  41. data/spec/dummy/config/boot.rb +5 -0
  42. data/spec/dummy/config/database.yml +25 -0
  43. data/spec/dummy/config/environment.rb +5 -0
  44. data/spec/dummy/config/environments/development.rb +39 -0
  45. data/spec/dummy/config/environments/production.rb +78 -0
  46. data/spec/dummy/config/environments/test.rb +39 -0
  47. data/spec/dummy/config/initializers/active_admin.rb +233 -0
  48. data/spec/dummy/config/initializers/assets.rb +8 -0
  49. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  50. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  51. data/spec/dummy/config/initializers/devise.rb +298 -0
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy/config/initializers/session_store.rb +3 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/devise.en.yml +60 -0
  58. data/spec/dummy/config/locales/devise_invitable.en.yml +23 -0
  59. data/spec/dummy/config/locales/en.yml +23 -0
  60. data/spec/dummy/config/routes.rb +10 -0
  61. data/spec/dummy/config/secrets.yml +22 -0
  62. data/spec/dummy/db/development.sqlite3 +0 -0
  63. data/spec/dummy/db/migrate/20150410143721_devise_create_admin_users.rb +48 -0
  64. data/spec/dummy/db/migrate/20150410143725_create_active_admin_comments.rb +19 -0
  65. data/spec/dummy/db/migrate/20150410152955_devise_invitable_add_to_admin_users.rb +27 -0
  66. data/spec/dummy/db/schema.rb +60 -0
  67. data/spec/dummy/db/test.sqlite3 +0 -0
  68. data/spec/dummy/log/development.log +7448 -0
  69. data/spec/dummy/log/test.log +0 -0
  70. data/spec/dummy/public/404.html +67 -0
  71. data/spec/dummy/public/422.html +67 -0
  72. data/spec/dummy/public/500.html +66 -0
  73. data/spec/dummy/public/favicon.ico +0 -0
  74. data/spec/dummy/spec/factories/admin_users.rb +6 -0
  75. data/spec/dummy/spec/models/admin_user_spec.rb +5 -0
  76. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_convert-units.scssc +0 -0
  77. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_directional-values.scssc +0 -0
  78. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_font-source-declaration.scssc +0 -0
  79. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_gradient-positions-parser.scssc +0 -0
  80. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-angle-parser.scssc +0 -0
  81. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-gradient-parser.scssc +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-positions-parser.scssc +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_linear-side-corner-parser.scssc +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-arg-parser.scssc +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-gradient-parser.scssc +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_radial-positions-parser.scssc +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_render-gradients.scssc +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_shape-size-stripper.scssc +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sass/1028181fce024ed05cd1cc2616c98526298c2826/_str-to-num.scssc +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_base.scssc +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_forms.scssc +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_header.scssc +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_mixins.scssc +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/_typography.scssc +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sass/17fbe99dc334cd3d6bba933653fb6f5bf44a11e5/print.scssc +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_animation.scssc +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_appearance.scssc +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_backface-visibility.scssc +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_background-image.scssc +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_background.scssc +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_border-image.scssc +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_calc.scssc +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_columns.scssc +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_filter.scssc +0 -0
  105. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_flex-box.scssc +0 -0
  106. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_font-face.scssc +0 -0
  107. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_font-feature-settings.scssc +0 -0
  108. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_hidpi-media-query.scssc +0 -0
  109. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_hyphens.scssc +0 -0
  110. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_image-rendering.scssc +0 -0
  111. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_keyframes.scssc +0 -0
  112. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_linear-gradient.scssc +0 -0
  113. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_perspective.scssc +0 -0
  114. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_placeholder.scssc +0 -0
  115. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_radial-gradient.scssc +0 -0
  116. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_selection.scssc +0 -0
  117. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_text-decoration.scssc +0 -0
  118. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_transform.scssc +0 -0
  119. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_transition.scssc +0 -0
  120. data/spec/dummy/tmp/cache/assets/development/sass/1a763d9c76c0adff95901b2bba0db8bd829e0766/_user-select.scssc +0 -0
  121. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-color.scssc +0 -0
  122. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-radius.scssc +0 -0
  123. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-style.scssc +0 -0
  124. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_border-width.scssc +0 -0
  125. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_buttons.scssc +0 -0
  126. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_clearfix.scssc +0 -0
  127. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_ellipsis.scssc +0 -0
  128. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_font-stacks.scssc +0 -0
  129. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_hide-text.scssc +0 -0
  130. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_margin.scssc +0 -0
  131. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_padding.scssc +0 -0
  132. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_position.scssc +0 -0
  133. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_prefixer.scssc +0 -0
  134. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_retina-image.scssc +0 -0
  135. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_size.scssc +0 -0
  136. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_text-inputs.scssc +0 -0
  137. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_timing-functions.scssc +0 -0
  138. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_triangle.scssc +0 -0
  139. data/spec/dummy/tmp/cache/assets/development/sass/44c3a84c83c7b16451abcf4446b2b6da97a2302b/_word-wrap.scssc +0 -0
  140. data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_asset-pipeline.scssc +0 -0
  141. data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_prefixer.scssc +0 -0
  142. data/spec/dummy/tmp/cache/assets/development/sass/4b7ecb0870809776f212a04c3d9dbb36b4cdf767/_px-to-em.scssc +0 -0
  143. data/spec/dummy/tmp/cache/assets/development/sass/70f88ad5ef84b8629a842f19d03d8f08efe0cccf/_bourbon-deprecated-upcoming.scssc +0 -0
  144. data/spec/dummy/tmp/cache/assets/development/sass/70f88ad5ef84b8629a842f19d03d8f08efe0cccf/_bourbon.scssc +0 -0
  145. data/spec/dummy/tmp/cache/assets/development/sass/7bbf81849b100129577eff376b5a706ba65bcd58/active_admin.css.scssc +0 -0
  146. data/spec/dummy/tmp/cache/assets/development/sass/7bbf81849b100129577eff376b5a706ba65bcd58/common.css.scssc +0 -0
  147. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_all.scssc +0 -0
  148. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_buttons.scssc +0 -0
  149. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_gradients.scssc +0 -0
  150. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_reset.scssc +0 -0
  151. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_rounded.scssc +0 -0
  152. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_sections.scssc +0 -0
  153. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_shadows.scssc +0 -0
  154. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_typography.scssc +0 -0
  155. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_utilities.scssc +0 -0
  156. data/spec/dummy/tmp/cache/assets/development/sass/8a364070a12d0a15ea1d2121a72561e6b824d4e8/_variables.scssc +0 -0
  157. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_assign-inputs.scssc +0 -0
  158. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_contains-falsy.scssc +0 -0
  159. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_contains.scssc +0 -0
  160. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-length.scssc +0 -0
  161. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-light.scssc +0 -0
  162. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-number.scssc +0 -0
  163. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_is-size.scssc +0 -0
  164. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_modular-scale.scssc +0 -0
  165. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_px-to-em.scssc +0 -0
  166. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_px-to-rem.scssc +0 -0
  167. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_shade.scssc +0 -0
  168. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_strip-units.scssc +0 -0
  169. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_tint.scssc +0 -0
  170. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_transition-property-name.scssc +0 -0
  171. data/spec/dummy/tmp/cache/assets/development/sass/b901d1e14d3d0d00c6add3df5586528531abc557/_unpack.scssc +0 -0
  172. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_batch_actions.scssc +0 -0
  173. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_blank_slates.scssc +0 -0
  174. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_breadcrumbs.scssc +0 -0
  175. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_buttons.scssc +0 -0
  176. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_columns.scssc +0 -0
  177. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_comments.scssc +0 -0
  178. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_date_picker.scssc +0 -0
  179. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_dropdown_menu.scssc +0 -0
  180. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_flash_messages.scssc +0 -0
  181. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_grid.scssc +0 -0
  182. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_index_list.scssc +0 -0
  183. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_links.scssc +0 -0
  184. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_modal_dialog.scssc +0 -0
  185. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_pagination.scssc +0 -0
  186. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_panels.scssc +0 -0
  187. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_scopes.scssc +0 -0
  188. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_status_tags.scssc +0 -0
  189. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_table_tools.scssc +0 -0
  190. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_tables.scssc +0 -0
  191. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_tabs.scssc +0 -0
  192. data/spec/dummy/tmp/cache/assets/development/sass/d249e7e8b87223dd43bae71d909891f125bbe323/_unsupported_browser.scssc +0 -0
  193. data/spec/dummy/tmp/cache/assets/development/sass/d6f230b39bfd59350579552507cd99966fc1b840/_logged_out.scssc +0 -0
  194. data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_footer.scssc +0 -0
  195. data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_main_structure.scssc +0 -0
  196. data/spec/dummy/tmp/cache/assets/development/sass/e3029a32329d7478eb1baef4789f60561ae17b19/_title_bar.scssc +0 -0
  197. data/spec/dummy/tmp/cache/assets/development/sprockets/020469b54d49d768044a4486a79fece8 +0 -0
  198. data/spec/dummy/tmp/cache/assets/development/sprockets/04271c7d6f2ec7114fb10cf710f46321 +0 -0
  199. data/spec/dummy/tmp/cache/assets/development/sprockets/04815176b18d23ced953077cdab6c799 +0 -0
  200. data/spec/dummy/tmp/cache/assets/development/sprockets/06a87bff2cb9efaeadd6488276b445fc +0 -0
  201. data/spec/dummy/tmp/cache/assets/development/sprockets/08c61b97d4a06c9222e3d08b62994313 +0 -0
  202. data/spec/dummy/tmp/cache/assets/development/sprockets/0ac54315a65ae703ae5d971e1016bc93 +0 -0
  203. data/spec/dummy/tmp/cache/assets/development/sprockets/0b679a0c1686bd49d25d48d139370d2d +0 -0
  204. data/spec/dummy/tmp/cache/assets/development/sprockets/0de1bd69271e7685d9de91e1e693a030 +0 -0
  205. data/spec/dummy/tmp/cache/assets/development/sprockets/11fcfa0f117b707749e41f3e3b6e46bd +0 -0
  206. data/spec/dummy/tmp/cache/assets/development/sprockets/12cbb653a7352092868719e2069339eb +0 -0
  207. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  208. data/spec/dummy/tmp/cache/assets/development/sprockets/149f0d08df958fa01d609255de2d9d18 +0 -0
  209. data/spec/dummy/tmp/cache/assets/development/sprockets/1583a59b579664195aa64c5108d89aa5 +0 -0
  210. data/spec/dummy/tmp/cache/assets/development/sprockets/18e079d090a4a8937bdd7d2f590f68b8 +0 -0
  211. data/spec/dummy/tmp/cache/assets/development/sprockets/1d26050d99e148af74ede15b69452543 +0 -0
  212. data/spec/dummy/tmp/cache/assets/development/sprockets/1e4153d3e4769f2e887128e6988e44bc +0 -0
  213. data/spec/dummy/tmp/cache/assets/development/sprockets/1faa07e4c9533faf6399a57e287e052d +0 -0
  214. data/spec/dummy/tmp/cache/assets/development/sprockets/228d1c05e21e5f59b4d06c55c4c46cb9 +0 -0
  215. data/spec/dummy/tmp/cache/assets/development/sprockets/2294f60e546ecf8241d95e6c2d8107f4 +0 -0
  216. data/spec/dummy/tmp/cache/assets/development/sprockets/229511278f4c1de83f6e9f27da569de3 +0 -0
  217. data/spec/dummy/tmp/cache/assets/development/sprockets/233492f5353faf10b3dbfedea7210136 +0 -0
  218. data/spec/dummy/tmp/cache/assets/development/sprockets/244bb2d62aa9c3e642a1a1e2cf3219c3 +0 -0
  219. data/spec/dummy/tmp/cache/assets/development/sprockets/25eab49d284bfc42167c93a7a866e3d0 +0 -0
  220. data/spec/dummy/tmp/cache/assets/development/sprockets/2ad77ccae7e91adec676e572a0138600 +0 -0
  221. data/spec/dummy/tmp/cache/assets/development/sprockets/2d5495692330f027c9baff0880ea3e6a +0 -0
  222. data/spec/dummy/tmp/cache/assets/development/sprockets/2d9303155db25acdf0594c1be8c23802 +0 -0
  223. data/spec/dummy/tmp/cache/assets/development/sprockets/2e6efe9c42b17ddcbc206cb7029a6435 +0 -0
  224. data/spec/dummy/tmp/cache/assets/development/sprockets/2f4f9c98b548235df0004a09e72dbd18 +0 -0
  225. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  226. data/spec/dummy/tmp/cache/assets/development/sprockets/30b236cacb8e264758fd905b715f76a9 +0 -0
  227. data/spec/dummy/tmp/cache/assets/development/sprockets/314891a3c25acdf25910a2e234b3343a +0 -0
  228. data/spec/dummy/tmp/cache/assets/development/sprockets/3511cfc7c4f69a8218b6f3140f4d635f +0 -0
  229. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  230. data/spec/dummy/tmp/cache/assets/development/sprockets/363234dc3dbbe6551ce44ea8631cffe6 +0 -0
  231. data/spec/dummy/tmp/cache/assets/development/sprockets/3b5dbef295b238e9b12706b4e6c1e56c +0 -0
  232. data/spec/dummy/tmp/cache/assets/development/sprockets/4378d5d313e990ba965c1f5b50dc65c7 +0 -0
  233. data/spec/dummy/tmp/cache/assets/development/sprockets/46e76755abb21a6f71c4bbf2bc064e63 +0 -0
  234. data/spec/dummy/tmp/cache/assets/development/sprockets/48364c7ad6a724ba96ebdecd5c23d961 +0 -0
  235. data/spec/dummy/tmp/cache/assets/development/sprockets/4976537d77bcfe181d91dc20d0ef235a +0 -0
  236. data/spec/dummy/tmp/cache/assets/development/sprockets/54f65999781681ab7302a4176148a44a +0 -0
  237. data/spec/dummy/tmp/cache/assets/development/sprockets/560c8c6915d818dd9078f9d5abc08c95 +0 -0
  238. data/spec/dummy/tmp/cache/assets/development/sprockets/5694e086784372d7dc031aef8a186e89 +0 -0
  239. data/spec/dummy/tmp/cache/assets/development/sprockets/5afa63f732e7b54174ce86b414c96a45 +0 -0
  240. data/spec/dummy/tmp/cache/assets/development/sprockets/5e97785b08efa9e0a2b154df29233cec +0 -0
  241. data/spec/dummy/tmp/cache/assets/development/sprockets/5ee468c10fbb155f80790e7592cb2261 +0 -0
  242. data/spec/dummy/tmp/cache/assets/development/sprockets/603404240ab126afdb4ed3427ae4f479 +0 -0
  243. data/spec/dummy/tmp/cache/assets/development/sprockets/613f2488e8d9cc76126c19c787679b38 +0 -0
  244. data/spec/dummy/tmp/cache/assets/development/sprockets/63b56a82917f26c09e67ef832a0cf88a +0 -0
  245. data/spec/dummy/tmp/cache/assets/development/sprockets/64ff0d7d0db6558adb559b4831390964 +0 -0
  246. data/spec/dummy/tmp/cache/assets/development/sprockets/673b8b56f420e08ef92f276ff20f2aa1 +0 -0
  247. data/spec/dummy/tmp/cache/assets/development/sprockets/68193f8d4666c5286a7daefeffddaf49 +0 -0
  248. data/spec/dummy/tmp/cache/assets/development/sprockets/685e6c12f9d1aad28d5d644179c5ffcc +0 -0
  249. data/spec/dummy/tmp/cache/assets/development/sprockets/6a88935019f4072a3649ed64f87a02fa +0 -0
  250. data/spec/dummy/tmp/cache/assets/development/sprockets/6d7ab8938ac4135132b6799cd6db4b7f +0 -0
  251. data/spec/dummy/tmp/cache/assets/development/sprockets/6d8120aef989110fe9a7cd9608405ae1 +0 -0
  252. data/spec/dummy/tmp/cache/assets/development/sprockets/6f09ac5a8305d2f277b9e85af612a68f +0 -0
  253. data/spec/dummy/tmp/cache/assets/development/sprockets/72201ee3f24c81d28bafd04233662d81 +0 -0
  254. data/spec/dummy/tmp/cache/assets/development/sprockets/77b562776eb4cf5ab2f7aa04695b82b9 +0 -0
  255. data/spec/dummy/tmp/cache/assets/development/sprockets/78713e886542acb6d61a3c068749d996 +0 -0
  256. data/spec/dummy/tmp/cache/assets/development/sprockets/7aa6ca65af176c54e4e7c93c8eee5a7f +0 -0
  257. data/spec/dummy/tmp/cache/assets/development/sprockets/7d42c4b4476d50ca06de155753c226f0 +0 -0
  258. data/spec/dummy/tmp/cache/assets/development/sprockets/82ce96f1660d7d8113f90a27221adbfa +0 -0
  259. data/spec/dummy/tmp/cache/assets/development/sprockets/838ac605e801b1419abdb52a8e5690f7 +0 -0
  260. data/spec/dummy/tmp/cache/assets/development/sprockets/83d4dff562d9e7a769fb390ebb012fb1 +0 -0
  261. data/spec/dummy/tmp/cache/assets/development/sprockets/84f74cda79e9721a46564d38f2c9ef6f +0 -0
  262. data/spec/dummy/tmp/cache/assets/development/sprockets/857ecd2092cee11f740b3cf2e373ad2a +0 -0
  263. data/spec/dummy/tmp/cache/assets/development/sprockets/8c7a809c7cfa10cda4fb6c3e6709e265 +0 -0
  264. data/spec/dummy/tmp/cache/assets/development/sprockets/8d2cee3bd1464d780af7a0828a9d58b1 +0 -0
  265. data/spec/dummy/tmp/cache/assets/development/sprockets/8fa0744ca1427da42da34f579c74524f +0 -0
  266. data/spec/dummy/tmp/cache/assets/development/sprockets/9349b215d839f1690e8afb1fbeddd993 +0 -0
  267. data/spec/dummy/tmp/cache/assets/development/sprockets/949c1bc9c998c5bd6a0d9a1d6acd6ce4 +0 -0
  268. data/spec/dummy/tmp/cache/assets/development/sprockets/9a26bfb0ac4b135a30ef7a524c72d89c +0 -0
  269. data/spec/dummy/tmp/cache/assets/development/sprockets/9ca1a92b91ce534571f030a61980a75e +0 -0
  270. data/spec/dummy/tmp/cache/assets/development/sprockets/9dcb1c83e3b4617ecca45b5d3b81f60d +0 -0
  271. data/spec/dummy/tmp/cache/assets/development/sprockets/a19a5174bdccc410d938a7d1cfb733c9 +0 -0
  272. data/spec/dummy/tmp/cache/assets/development/sprockets/a5e1e40b6692e7376e4d6f88004726b2 +0 -0
  273. data/spec/dummy/tmp/cache/assets/development/sprockets/ad49f96f03d1961db2eab087ed3c7ea8 +0 -0
  274. data/spec/dummy/tmp/cache/assets/development/sprockets/af0b09b451f04ea0434a8b4fbbbdc1d4 +0 -0
  275. data/spec/dummy/tmp/cache/assets/development/sprockets/b3f798f9c2d18a51416754512c4647e5 +0 -0
  276. data/spec/dummy/tmp/cache/assets/development/sprockets/b9dd292b009943b8e2270f73ebbedf74 +0 -0
  277. data/spec/dummy/tmp/cache/assets/development/sprockets/bc20cbb537a9608646f5fd61ac4f5b6e +0 -0
  278. data/spec/dummy/tmp/cache/assets/development/sprockets/c066bb7fe16a5a31314af9c47ab1b302 +0 -0
  279. data/spec/dummy/tmp/cache/assets/development/sprockets/cbadbd4277993092f7c0ce14ae07a11d +0 -0
  280. data/spec/dummy/tmp/cache/assets/development/sprockets/ceff673e68832ab2e3abe291c4298def +0 -0
  281. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  282. data/spec/dummy/tmp/cache/assets/development/sprockets/d4a873903abf86312424a5db5ffb76f9 +0 -0
  283. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  284. data/spec/dummy/tmp/cache/assets/development/sprockets/d99126bb612976ba5bb4df6a531d475d +0 -0
  285. data/spec/dummy/tmp/cache/assets/development/sprockets/d99c1222bcd183fa0fbcd4218c5b666b +0 -0
  286. data/spec/dummy/tmp/cache/assets/development/sprockets/de876f8ba8f92cd088d6c41c85734544 +0 -0
  287. data/spec/dummy/tmp/cache/assets/development/sprockets/df621539f755316a56631aebe2748452 +0 -0
  288. data/spec/dummy/tmp/cache/assets/development/sprockets/e0d877dcc11792e84e84fec88785dfd1 +0 -0
  289. data/spec/dummy/tmp/cache/assets/development/sprockets/e1f8f4c32f24742deee7c46e67d5faa8 +0 -0
  290. data/spec/dummy/tmp/cache/assets/development/sprockets/e36e14e0102484d227eae944dc5a8eae +0 -0
  291. data/spec/dummy/tmp/cache/assets/development/sprockets/e630082663266df770ad29b95678db0e +0 -0
  292. data/spec/dummy/tmp/cache/assets/development/sprockets/ea98bff2b4e53aa8c38bed3e8d736d99 +0 -0
  293. data/spec/dummy/tmp/cache/assets/development/sprockets/ed9f0de1b65ae8d7ef89087c83728461 +0 -0
  294. data/spec/dummy/tmp/cache/assets/development/sprockets/edfd86f12b45145b31685a0c30fa5495 +0 -0
  295. data/spec/dummy/tmp/cache/assets/development/sprockets/ee3caca6fb45c569fc2e6e655323a5d9 +0 -0
  296. data/spec/dummy/tmp/cache/assets/development/sprockets/ee8a6c7b742067439aaea86a3b5450fa +0 -0
  297. data/spec/dummy/tmp/cache/assets/development/sprockets/f1cd40a56fd4a69025d32ac56f8c7feb +0 -0
  298. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  299. data/spec/dummy/tmp/cache/assets/development/sprockets/f9050b378f735c446f0abeafb4f1a5ea +0 -0
  300. data/spec/dummy/tmp/cache/assets/development/sprockets/fb8b186d5bf0307f86f65fc787d2adeb +0 -0
  301. data/spec/dummy/tmp/cache/assets/development/sprockets/ff9120f669a3145de76277b75c5d453a +0 -0
  302. data/spec/dummy/tmp/letter_opener/1428686575_fdb99d0/rich.html +112 -0
  303. data/spec/dummy/tmp/letter_opener/1428686668_0482815/rich.html +112 -0
  304. data/spec/dummy/tmp/letter_opener/1428686915_ba57edb/rich.html +112 -0
  305. data/spec/dummy/tmp/letter_opener/1428686926_7ba9ba8/rich.html +112 -0
  306. data/spec/dummy/tmp/letter_opener/1428687062_b792e50/rich.html +112 -0
  307. data/spec/dummy/tmp/letter_opener/1428690069_5d1db90/rich.html +112 -0
  308. data/spec/dummy/tmp/letter_opener/1428690803_ab5d590/rich.html +112 -0
  309. data/spec/dummy/tmp/letter_opener/1428690891_f1d55ef/rich.html +112 -0
  310. data/spec/dummy/tmp/letter_opener/1428691336_6ba2b51/rich.html +112 -0
  311. data/spec/dummy/tmp/letter_opener/1428691351_0d59f62/rich.html +112 -0
  312. data/spec/dummy/tmp/letter_opener/1428691994_5e9dffb/rich.html +112 -0
  313. data/spec/dummy/tmp/letter_opener/1428693295_0182997/rich.html +112 -0
  314. data/spec/dummy/tmp/letter_opener/1428693309_b6349c8/rich.html +112 -0
  315. data/spec/dummy/tmp/letter_opener/1428699512_11f1d8c/rich.html +112 -0
  316. data/spec/dummy/tmp/letter_opener/1428699533_1b290aa/rich.html +112 -0
  317. data/spec/dummy/tmp/letter_opener/1428699548_ea5f37d/rich.html +112 -0
  318. data/spec/dummy/tmp/letter_opener/1428699564_19f1e34/rich.html +112 -0
  319. data/spec/rails_helper.rb +22 -0
  320. data/spec/spec_helper.rb +78 -0
  321. metadata +765 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2b80a20ddbacbb255bb32486081bad79e50161ee
4
+ data.tar.gz: 0ad131edca99359f1a48f31c18cd131a38c0498f
5
+ SHA512:
6
+ metadata.gz: 60cedea7ee60846d0c0ad965eba57bede1c757d5247aec39e1d70f8014fa30519988534cca777c7fd0d03e4bdf1c768fb08c1da3d4102f98dcc19ef057aa9c55
7
+ data.tar.gz: 8b7902e2da95f31de495d81fb2852eaab1e27c6f31540ba1b1af627ff7448d44c6ec356101a9b6654d32118e6dd526ab6b3f8477cc311c01e1eb147e98be8328
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2015 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,37 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'AdminInvitable'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+ APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
18
+ load 'rails/tasks/engine.rake'
19
+
20
+ begin
21
+ require 'rspec/core/rake_task'
22
+ RSpec::Core::RakeTask.new(:spec)
23
+ rescue LoadError
24
+ end
25
+
26
+ require 'thor'
27
+
28
+ task default: :spec
29
+
30
+ task :run_dummy_app do
31
+ Dir.chdir("spec/dummy") do
32
+ exec("bundle exec rails s -p 3000")
33
+ end
34
+ end
35
+
36
+ Bundler::GemHelper.install_tasks
37
+
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_tree .
14
+ *= require_self
15
+ */
@@ -0,0 +1,4 @@
1
+ module AdminInvitable
2
+ class ApplicationController < ActionController::Base
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module AdminInvitable
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>AdminInvitable</title>
5
+ <%= stylesheet_link_tag "admin_invitable/application", media: "all" %>
6
+ <%= javascript_include_tag "admin_invitable/application" %>
7
+ <%= csrf_meta_tags %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
data/config/routes.rb ADDED
@@ -0,0 +1,2 @@
1
+ AdminInvitable::Engine.routes.draw do
2
+ end
@@ -0,0 +1,4 @@
1
+ require "admin_invitable/engine"
2
+
3
+ module AdminInvitable
4
+ end
@@ -0,0 +1,17 @@
1
+ module ::ActiveAdmin
2
+ module Devise
3
+ class << self
4
+ alias_method :old_controllers, :controllers
5
+ def controllers
6
+ old_controllers.merge({invitations: "active_admin/devise/invitations"})
7
+ end
8
+ alias_method :old_controllers_for_filters, :controllers_for_filters
9
+ def controllers_for_filters
10
+ old_controllers_for_filters + [InvitationsController]
11
+ end
12
+ end
13
+ class InvitationsController < ::Devise::InvitationsController
14
+ include ::ActiveAdmin::Devise::Controller
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,14 @@
1
+ module AdminInvitable
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace AdminInvitable
4
+
5
+ config.generators do |g|
6
+ g.test_framework :rspec
7
+ g.fixture_replacement :factory_girl, :dir => 'spec/factories'
8
+ end
9
+
10
+ initializer "ativeadmin_invitable_patch" do |app|
11
+ require_relative "activeadmin_invitable_patch"
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,3 @@
1
+ module AdminInvitable
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,8 @@
1
+ class AdminInvitable::InstallGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def override_default_views
5
+ copy_file "edit.html.erb", "app/views/devise/invitations/edit.html.erb"
6
+ copy_file "invitation_instructions.html.erb", "app/views/devise/mailer/invitation_instructions.html.erb"
7
+ end
8
+ end
@@ -0,0 +1,17 @@
1
+ module ActiveAdmin
2
+ module Devise
3
+ class << self
4
+ alias_method :old_controllers, :controllers
5
+ def controllers
6
+ old_controllers.merge({invitations: "active_admin/devise/invitations"})
7
+ end
8
+ alias_method :old_controllers_for_filters, :controllers_for_filters
9
+ def controllers_for_filters
10
+ old_controllers_for_filters + [InvitationsController]
11
+ end
12
+ end
13
+ class InvitationsController < ::Devise::InvitationsController
14
+ include ::ActiveAdmin::Devise::Controller
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ <div id="login">
2
+ <h2><%= t 'devise.invitations.edit.header' %></h2>
3
+
4
+ <%= active_admin_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put }) do |f|
5
+ f.inputs do
6
+ f.input :password
7
+ f.input :password_confirmation
8
+ f.input :invitation_token, as: :hidden, input_html: { value: resource.invitation_token }
9
+ end
10
+ f.actions do
11
+ f.action :submit, label: t('devise.invitations.edit.submit_button'), button_html: { value: t('devise.invitations.edit.submit_button') }
12
+ end
13
+ end
14
+ %>
15
+ </div>
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :admin_invitable do
3
+ # # Task goes here
4
+ # end
@@ -0,0 +1,28 @@
1
+ == README
2
+
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
+
6
+ Things you may want to cover:
7
+
8
+ * Ruby version
9
+
10
+ * System dependencies
11
+
12
+ * Configuration
13
+
14
+ * Database creation
15
+
16
+ * Database initialization
17
+
18
+ * How to run the test suite
19
+
20
+ * Services (job queues, cache servers, search engines, etc.)
21
+
22
+ * Deployment instructions
23
+
24
+ * ...
25
+
26
+
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+
6
+ Rails.application.load_tasks
@@ -0,0 +1,28 @@
1
+ ActiveAdmin.register AdminUser do
2
+ permit_params :email, :password, :password_confirmation
3
+
4
+ index do
5
+ selectable_column
6
+ id_column
7
+ column :email
8
+ column :current_sign_in_at
9
+ column :sign_in_count
10
+ column :created_at
11
+ actions
12
+ end
13
+
14
+ filter :email
15
+ filter :current_sign_in_at
16
+ filter :sign_in_count
17
+ filter :created_at
18
+
19
+ form do |f|
20
+ f.inputs "Admin Details" do
21
+ f.input :email
22
+ f.input :password
23
+ f.input :password_confirmation
24
+ end
25
+ f.actions
26
+ end
27
+
28
+ end
@@ -0,0 +1,33 @@
1
+ ActiveAdmin.register_page "Dashboard" do
2
+
3
+ menu priority: 1, label: proc{ I18n.t("active_admin.dashboard") }
4
+
5
+ content title: proc{ I18n.t("active_admin.dashboard") } do
6
+ div class: "blank_slate_container", id: "dashboard_default_message" do
7
+ span class: "blank_slate" do
8
+ span I18n.t("active_admin.dashboard_welcome.welcome")
9
+ small I18n.t("active_admin.dashboard_welcome.call_to_action")
10
+ end
11
+ end
12
+
13
+ # Here is an example of a simple dashboard with columns and panels.
14
+ #
15
+ # columns do
16
+ # column do
17
+ # panel "Recent Posts" do
18
+ # ul do
19
+ # Post.recent(5).map do |post|
20
+ # li link_to(post.title, admin_post_path(post))
21
+ # end
22
+ # end
23
+ # end
24
+ # end
25
+
26
+ # column do
27
+ # panel "Info" do
28
+ # para "Welcome to ActiveAdmin."
29
+ # end
30
+ # end
31
+ # end
32
+ end # content
33
+ end
@@ -0,0 +1 @@
1
+ #= require active_admin/base
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -0,0 +1,17 @@
1
+ // SASS variable overrides must be declared before loading up Active Admin's styles.
2
+ //
3
+ // To view the variables that Active Admin provides, take a look at
4
+ // `app/assets/stylesheets/active_admin/mixins/_variables.css.scss` in the
5
+ // Active Admin source.
6
+ //
7
+ // For example, to change the sidebar width:
8
+ // $sidebar-width: 242px;
9
+
10
+ // Active Admin's got SASS!
11
+ @import "active_admin/mixins";
12
+ @import "active_admin/base";
13
+
14
+ // Overriding any non-variable SASS must be done after the fact.
15
+ // For example, to change the default status-tag color:
16
+ //
17
+ // .status_tag { background: #6090DB; }
@@ -0,0 +1,15 @@
1
+ /*
2
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
3
+ * listed below.
4
+ *
5
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7
+ *
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
12
+ *
13
+ *= require_self
14
+ *= require common
15
+ */
@@ -0,0 +1,17 @@
1
+ .invitation {
2
+ text-align: center;
3
+ padding: 50px;
4
+ font-size: 18px;
5
+
6
+ form {
7
+
8
+ div {
9
+ padding: 5px;
10
+
11
+ input[type=email] {
12
+ width: 200px;
13
+ padding: 5px;
14
+ }
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,6 @@
1
+ class ApplicationController < ActionController::Base
2
+ # Prevent CSRF attacks by raising an exception.
3
+ # For APIs, you may want to use :null_session instead.
4
+ protect_from_forgery with: :exception
5
+ skip_before_filter :verify_authenticity_token
6
+ end
@@ -0,0 +1,9 @@
1
+ class HomeController < ApplicationController
2
+ def index
3
+ end
4
+
5
+ def invite
6
+ @email = params[:email]
7
+ AdminUser.invite!(email: @email)
8
+ end
9
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,6 @@
1
+ class AdminUser < ActiveRecord::Base
2
+ # Include default devise modules. Others available are:
3
+ # :confirmable, :lockable, :timeoutable and :omniauthable
4
+ devise :invitable, :database_authenticatable,
5
+ :recoverable, :rememberable, :trackable, :validatable
6
+ end
@@ -0,0 +1,15 @@
1
+ <div id="login">
2
+ <h2><%= t 'devise.invitations.edit.header' %></h2>
3
+
4
+ <%= active_admin_form_for(resource, as: resource_name, url: invitation_path(resource_name), html: { method: :put }) do |f|
5
+ f.inputs do
6
+ f.input :password
7
+ f.input :password_confirmation
8
+ f.input :invitation_token, as: :hidden, input_html: { value: resource.invitation_token }
9
+ end
10
+ f.actions do
11
+ f.action :submit, label: t('devise.invitations.edit.submit_button'), button_html: { value: t('devise.invitations.edit.submit_button') }
12
+ end
13
+ end
14
+ %>
15
+ </div>