devise_invitable 1.1.8 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of devise_invitable might be problematic. Click here for more details.

Files changed (67) hide show
  1. data/README.rdoc +12 -2
  2. data/app/controllers/devise/invitations_controller.rb +13 -5
  3. data/app/controllers/devise_invitable/registrations_controller.rb +2 -2
  4. data/lib/devise_invitable.rb +1 -0
  5. data/lib/devise_invitable/model.rb +18 -22
  6. data/lib/devise_invitable/parameter_sanitizer.rb +11 -0
  7. data/lib/devise_invitable/rails.rb +1 -0
  8. data/lib/devise_invitable/version.rb +1 -1
  9. data/lib/generators/active_record/templates/migration.rb +2 -1
  10. data/test/functional/controller_helpers_test.rb +39 -0
  11. data/test/functional/registrations_controller_test.rb +59 -0
  12. data/test/generators/views_generator_test.rb +40 -0
  13. data/test/generators_test.rb +34 -0
  14. data/test/integration/invitation_remove_test.rb +29 -0
  15. data/test/integration/invitation_test.rb +223 -0
  16. data/test/integration_tests_helper.rb +48 -0
  17. data/test/mailers/invitation_mail_test.rb +59 -0
  18. data/test/model_tests_helper.rb +33 -0
  19. data/test/models/invitable_test.rb +533 -0
  20. data/test/models_test.rb +74 -0
  21. data/test/orm/active_record.rb +4 -0
  22. data/test/orm/mongoid.rb +20 -0
  23. data/test/rails_app/Rakefile +7 -0
  24. data/test/rails_app/app/controllers/admins_controller.rb +6 -0
  25. data/test/rails_app/app/controllers/application_controller.rb +10 -0
  26. data/test/rails_app/app/controllers/free_invitations_controller.rb +6 -0
  27. data/test/rails_app/app/controllers/home_controller.rb +4 -0
  28. data/test/rails_app/app/controllers/users_controller.rb +12 -0
  29. data/test/rails_app/app/helpers/application_helper.rb +2 -0
  30. data/test/rails_app/app/models/admin.rb +23 -0
  31. data/test/rails_app/app/models/octopussy.rb +15 -0
  32. data/test/rails_app/app/models/user.rb +51 -0
  33. data/test/rails_app/app/views/admins/new.html.erb +12 -0
  34. data/test/rails_app/app/views/free_invitations/new.html.erb +12 -0
  35. data/test/rails_app/app/views/home/index.html.erb +0 -0
  36. data/test/rails_app/app/views/layouts/application.html.erb +16 -0
  37. data/test/rails_app/app/views/users/invitations/new.html.erb +15 -0
  38. data/test/rails_app/config.ru +4 -0
  39. data/test/rails_app/config/application.rb +24 -0
  40. data/test/rails_app/config/boot.rb +11 -0
  41. data/test/rails_app/config/database.yml +22 -0
  42. data/test/rails_app/config/environment.rb +5 -0
  43. data/test/rails_app/config/environments/development.rb +25 -0
  44. data/test/rails_app/config/environments/production.rb +49 -0
  45. data/test/rails_app/config/environments/test.rb +33 -0
  46. data/test/rails_app/config/initializers/backtrace_silencers.rb +7 -0
  47. data/test/rails_app/config/initializers/devise.rb +207 -0
  48. data/test/rails_app/config/initializers/inflections.rb +10 -0
  49. data/test/rails_app/config/initializers/mime_types.rb +5 -0
  50. data/test/rails_app/config/initializers/secret_token.rb +7 -0
  51. data/test/rails_app/config/initializers/session_store.rb +8 -0
  52. data/test/rails_app/config/initializers/wrap_parameters.rb +14 -0
  53. data/test/rails_app/config/locales/devise.en.yml +57 -0
  54. data/test/rails_app/config/locales/en.yml +14 -0
  55. data/test/rails_app/config/routes.rb +9 -0
  56. data/test/rails_app/db/migrate/20100401102949_create_tables.rb +39 -0
  57. data/test/rails_app/mongoid.yml +10 -0
  58. data/test/rails_app/script/rails +6 -0
  59. data/test/routes_test.rb +20 -0
  60. data/test/test_helper.rb +24 -0
  61. metadata +128 -40
  62. data/app/controllers/devise_invitable/registrations_controller.rb~ +0 -15
  63. data/lib/devise_invitable.rb~ +0 -65
  64. data/lib/devise_invitable/controllers/helpers.rb~ +0 -21
  65. data/lib/devise_invitable/controllers/registrations.rb~ +0 -21
  66. data/lib/devise_invitable/model.rb~ +0 -224
  67. data/lib/devise_invitable/rails.rb~ +0 -21
@@ -0,0 +1,33 @@
1
+ RailsApp::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+ config.eager_load = false
10
+
11
+ # Show full error reports and disable caching
12
+ config.consider_all_requests_local = true
13
+ config.action_controller.perform_caching = false
14
+
15
+ # Raise exceptions instead of rendering exception templates
16
+ config.action_dispatch.show_exceptions = false
17
+
18
+ # Disable request forgery protection in test environment
19
+ config.action_controller.allow_forgery_protection = false
20
+
21
+ # Tell Action Mailer not to deliver emails to the real world.
22
+ # The :test delivery method accumulates sent emails in the
23
+ # ActionMailer::Base.deliveries array.
24
+ config.action_mailer.delivery_method = :test
25
+
26
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
27
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
28
+ # like if you have constraints or database-specific column types
29
+ # config.active_record.schema_format = :sql
30
+
31
+ # Print deprecation notices to the stderr
32
+ config.active_support.deprecation = :stderr
33
+ end
@@ -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,207 @@
1
+ # Use this hook to configure devise mailer, warden hooks and so forth.
2
+ # Many of these configuration options can be set straight in your model.
3
+ Devise.setup do |config|
4
+ # ==> Mailer Configuration
5
+ # Configure the e-mail address which will be shown in Devise::Mailer,
6
+ # note that it will be overwritten if you use your own mailer class with default "from" parameter.
7
+ config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
8
+
9
+ # Configure the class responsible to send e-mails.
10
+ # config.mailer = "Devise::Mailer"
11
+
12
+ # ==> ORM configuration
13
+ # Load and configure the ORM. Supports :active_record (default) and
14
+ # :mongoid (bson_ext recommended) by default. Other ORMs may be
15
+ # available as additional gems.
16
+ require "devise/orm/#{DEVISE_ORM}"
17
+
18
+ # ==> Configuration for any authentication mechanism
19
+ # Configure which keys are used when authenticating a user. The default is
20
+ # just :email. You can configure it to use [:username, :subdomain], so for
21
+ # authenticating a user, both parameters are required. Remember that those
22
+ # parameters are used only when authenticating and not when retrieving from
23
+ # session. If you need permissions, you should implement that in a before filter.
24
+ # You can also supply a hash where the value is a boolean determining whether
25
+ # or not authentication should be aborted when the value is not present.
26
+ # config.authentication_keys = [ :email ]
27
+
28
+ # Configure parameters from the request object used for authentication. Each entry
29
+ # given should be a request method and it will automatically be passed to the
30
+ # find_for_authentication method and considered in your model lookup. For instance,
31
+ # if you set :request_keys to [:subdomain], :subdomain will be used on authentication.
32
+ # The same considerations mentioned for authentication_keys also apply to request_keys.
33
+ # config.request_keys = []
34
+
35
+ # Configure which authentication keys should be case-insensitive.
36
+ # These keys will be downcased upon creating or modifying a user and when used
37
+ # to authenticate or find a user. Default is :email.
38
+ config.case_insensitive_keys = [ :email ]
39
+
40
+ # Configure which authentication keys should have whitespace stripped.
41
+ # These keys will have whitespace before and after removed upon creating or
42
+ # modifying a user and when used to authenticate or find a user. Default is :email.
43
+ config.strip_whitespace_keys = [ :email ]
44
+
45
+ # Tell if authentication through request.params is enabled. True by default.
46
+ # It can be set to an array that will enable params authentication only for the
47
+ # given strategies, for example, `config.params_authenticatable = [:database]` will
48
+ # enable it only for database (email + password) authentication.
49
+ # config.params_authenticatable = true
50
+
51
+ # Tell if authentication through HTTP Basic Auth is enabled. False by default.
52
+ # It can be set to an array that will enable http authentication only for the
53
+ # given strategies, for example, `config.http_authenticatable = [:token]` will
54
+ # enable it only for token authentication.
55
+ # config.http_authenticatable = false
56
+
57
+ # If http headers should be returned for AJAX requests. True by default.
58
+ # config.http_authenticatable_on_xhr = true
59
+
60
+ # The realm used in Http Basic Authentication. "Application" by default.
61
+ # config.http_authentication_realm = "Application"
62
+
63
+ # It will change confirmation, password recovery and other workflows
64
+ # to behave the same regardless if the e-mail provided was right or wrong.
65
+ # Does not affect registerable.
66
+ # config.paranoid = true
67
+
68
+ # By default Devise will store the user in session. You can skip storage for
69
+ # :http_auth and :token_auth by adding those symbols to the array below.
70
+ # Notice that if you are skipping storage for all authentication paths, you
71
+ # may want to disable generating routes to Devise's sessions controller by
72
+ # passing :skip => :sessions to `devise_for` in your config/routes.rb
73
+ config.skip_session_storage = [:http_auth]
74
+
75
+ # ==> Configuration for :database_authenticatable
76
+ # For bcrypt, this is the cost for hashing the password and defaults to 10. If
77
+ # using other encryptors, it sets how many times you want the password re-encrypted.
78
+ #
79
+ # Limiting the stretches to just one in testing will increase the performance of
80
+ # your test suite dramatically. However, it is STRONGLY RECOMMENDED to not use
81
+ # a value less than 10 in other environments.
82
+ config.stretches = Rails.env.test? ? 1 : 10
83
+
84
+ # Setup a pepper to generate the encrypted password.
85
+ # config.pepper = "e31589192aeea8807cb7d8686b0f8484d6cbfaaa65443d45144519ed1d4ffbc6ccb73b21a69ece276d94f2cac95d83990d824f36f301d6f585ededd1bf90d67d"
86
+
87
+ # ==> Configuration for :confirmable
88
+ # A period that the user is allowed to access the website even without
89
+ # confirming his account. For instance, if set to 2.days, the user will be
90
+ # able to access the website for two days without confirming his account,
91
+ # access will be blocked just in the third day. Default is 0.days, meaning
92
+ # the user cannot access the website without confirming his account.
93
+ # config.allow_unconfirmed_access_for = 2.days
94
+
95
+ # If true, requires any email changes to be confirmed (exctly the same way as
96
+ # initial account confirmation) to be applied. Requires additional unconfirmed_email
97
+ # db field (see migrations). Until confirmed new email is stored in
98
+ # unconfirmed email column, and copied to email column on successful confirmation.
99
+ config.reconfirmable = true
100
+
101
+ # Defines which key will be used when confirming an account
102
+ # config.confirmation_keys = [ :email ]
103
+
104
+ # ==> Configuration for :rememberable
105
+ # The time the user will be remembered without asking for credentials again.
106
+ # config.remember_for = 2.weeks
107
+
108
+ # If true, extends the user's remember period when remembered via cookie.
109
+ # config.extend_remember_period = false
110
+
111
+ # :secure => true in order to force SSL only cookies.
112
+ # config.cookie_options = {}
113
+
114
+ # ==> Configuration for :validatable
115
+ # Range for password length. Default is 6..128.
116
+ # config.password_length = 6..128
117
+
118
+ # Email regex used to validate email formats. It simply asserts that
119
+ # an one (and only one) @ exists in the given string. This is mainly
120
+ # to give user feedback and not to assert the e-mail validity.
121
+ # config.email_regexp = /\A[^@]+@[^@]+\z/
122
+
123
+ # ==> Configuration for :timeoutable
124
+ # The time you want to timeout the user session without activity. After this
125
+ # time the user will be asked for credentials again. Default is 30 minutes.
126
+ # config.timeout_in = 30.minutes
127
+
128
+ # ==> Configuration for :lockable
129
+ # Defines which strategy will be used to lock an account.
130
+ # :failed_attempts = Locks an account after a number of failed attempts to sign in.
131
+ # :none = No lock strategy. You should handle locking by yourself.
132
+ # config.lock_strategy = :failed_attempts
133
+
134
+ # Defines which key will be used when locking and unlocking an account
135
+ # config.unlock_keys = [ :email ]
136
+
137
+ # Defines which strategy will be used to unlock an account.
138
+ # :email = Sends an unlock link to the user email
139
+ # :time = Re-enables login after a certain amount of time (see :unlock_in below)
140
+ # :both = Enables both strategies
141
+ # :none = No unlock strategy. You should handle unlocking by yourself.
142
+ # config.unlock_strategy = :both
143
+
144
+ # Number of authentication tries before locking an account if lock_strategy
145
+ # is failed attempts.
146
+ # config.maximum_attempts = 20
147
+
148
+ # Time interval to unlock the account if :time is enabled as unlock_strategy.
149
+ # config.unlock_in = 1.hour
150
+
151
+ # ==> Configuration for :recoverable
152
+ #
153
+ # Defines which key will be used when recovering the password for an account
154
+ # config.reset_password_keys = [ :email ]
155
+
156
+ # Time interval you can reset your password with a reset password key.
157
+ # Don't put a too small interval or your users won't have the time to
158
+ # change their passwords.
159
+ config.reset_password_within = 6.hours
160
+
161
+ # ==> Configuration for :token_authenticatable
162
+ # Defines name of the authentication token params key
163
+ # config.token_authentication_key = :auth_token
164
+
165
+ # ==> Scopes configuration
166
+ # Turn scoped views on. Before rendering "sessions/new", it will first check for
167
+ # "users/sessions/new". It's turned off by default because it's slower if you
168
+ # are using only default views.
169
+ # config.scoped_views = false
170
+
171
+ # Configure the default scope given to Warden. By default it's the first
172
+ # devise role declared in your routes (usually :user).
173
+ # config.default_scope = :user
174
+
175
+ # Configure sign_out behavior.
176
+ # Sign_out action can be scoped (i.e. /users/sign_out affects only :user scope).
177
+ # The default is true, which means any logout action will sign out all active scopes.
178
+ # config.sign_out_all_scopes = true
179
+
180
+ # ==> Navigation configuration
181
+ # Lists the formats that should be treated as navigational. Formats like
182
+ # :html, should redirect to the sign in page when the user does not have
183
+ # access, but formats like :xml or :json, should return 401.
184
+ #
185
+ # If you have any extra navigational formats, like :iphone or :mobile, you
186
+ # should add them to the navigational formats lists.
187
+ #
188
+ # The "*/*" below is required to match Internet Explorer requests.
189
+ # config.navigational_formats = ["*/*", :html]
190
+
191
+ # The default HTTP method used to sign out a resource. Default is :delete.
192
+ config.sign_out_via = :delete
193
+
194
+ # ==> OmniAuth
195
+ # Add a new OmniAuth provider. Check the wiki for more information on setting
196
+ # up on your models and hooks.
197
+ # config.omniauth :github, 'APP_ID', 'APP_SECRET', :scope => 'user,public_repo'
198
+
199
+ # ==> Warden configuration
200
+ # If you want to use other strategies, that are not supported by Devise, or
201
+ # change the failure app, you can configure them inside the config.warden block.
202
+ #
203
+ # config.warden do |manager|
204
+ # manager.intercept_401 = false
205
+ # manager.default_strategies(:scope => :user).unshift :some_external_strategy
206
+ # end
207
+ end
@@ -0,0 +1,10 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ RailsApp::Application.config.secret_token = 'e997edf9d7eba5cf89a76a046fa53f5d66261d22cfcf29e3f538c75ad2d175b106bd5d099f44f6ce34ad3b3162d71cfaa37d2d4f4b38645288331427b4c2a607'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ RailsApp::Application.config.session_store :cookie_store, :key => '_test_app_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rake db:sessions:create")
8
+ # RailsApp::Application.config.session_store :active_record_store
@@ -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])
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,57 @@
1
+ # Additional translations at https://github.com/plataformatec/devise/wiki/I18n
2
+
3
+ en:
4
+ errors:
5
+ messages:
6
+ expired: "has expired, please request a new one"
7
+ not_found: "not found"
8
+ already_confirmed: "was already confirmed, please try signing in"
9
+ not_locked: "was not locked"
10
+ not_saved:
11
+ one: "1 error prohibited this %{resource} from being saved:"
12
+ other: "%{count} errors prohibited this %{resource} from being saved:"
13
+
14
+ devise:
15
+ failure:
16
+ already_authenticated: 'You are already signed in.'
17
+ unauthenticated: 'You need to sign in or sign up before continuing.'
18
+ unconfirmed: 'You have to confirm your account before continuing.'
19
+ locked: 'Your account is locked.'
20
+ invalid: 'Invalid email or password.'
21
+ invalid_token: 'Invalid authentication token.'
22
+ timeout: 'Your session expired, please sign in again to continue.'
23
+ inactive: 'Your account was not activated yet.'
24
+ sessions:
25
+ signed_in: 'Signed in successfully.'
26
+ signed_out: 'Signed out successfully.'
27
+ passwords:
28
+ send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
29
+ updated: 'Your password was changed successfully. You are now signed in.'
30
+ updated_not_active: 'Your password was changed successfully.'
31
+ send_paranoid_instructions: "If your e-mail exists on our database, you will receive a password recovery link on your e-mail"
32
+ confirmations:
33
+ send_instructions: 'You will receive an email with instructions about how to confirm your account in a few minutes.'
34
+ send_paranoid_instructions: 'If your e-mail exists on our database, you will receive an email with instructions about how to confirm your account in a few minutes.'
35
+ confirmed: 'Your account was successfully confirmed. You are now signed in.'
36
+ registrations:
37
+ signed_up: 'Welcome! You have signed up successfully.'
38
+ signed_up_but_unconfirmed: 'A message with a confirmation link has been sent to your email address. Please open the link to activate your account.'
39
+ signed_up_but_inactive: 'You have signed up successfully. However, we could not sign you in because your account is not yet activated.'
40
+ signed_up_but_locked: 'You have signed up successfully. However, we could not sign you in because your account is locked.'
41
+ updated: 'You updated your account successfully.'
42
+ update_needs_confirmation: "You updated your account successfully, but we need to verify your new email address. Please check your email and click on the confirm link to finalize confirming your new email address."
43
+ destroyed: 'Bye! Your account was successfully cancelled. We hope to see you again soon.'
44
+ unlocks:
45
+ send_instructions: 'You will receive an email with instructions about how to unlock your account in a few minutes.'
46
+ unlocked: 'Your account has been unlocked successfully. Please sign in to continue.'
47
+ send_paranoid_instructions: 'If your account exists, you will receive an email with instructions about how to unlock it in a few minutes.'
48
+ omniauth_callbacks:
49
+ success: 'Successfully authorized from %{kind} account.'
50
+ failure: 'Could not authorize you from %{kind} because "%{reason}".'
51
+ mailer:
52
+ confirmation_instructions:
53
+ subject: 'Confirmation instructions'
54
+ reset_password_instructions:
55
+ subject: 'Reset password instructions'
56
+ unlock_instructions:
57
+ subject: 'Unlock Instructions'
@@ -0,0 +1,14 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
6
+ devise:
7
+ free_invitations:
8
+ send_instructions: 'An invitation email has been sent to %{email}.'
9
+ admins:
10
+ send_instructions: 'An invitation email has been sent to %{email}.'
11
+ mongoid:
12
+ errors:
13
+ messages:
14
+ taken: "has already been taken"
@@ -0,0 +1,9 @@
1
+ RailsApp::Application.routes.draw do
2
+ devise_for :users
3
+ devise_scope :user do
4
+ resource :free_invitation, :only => [:new, :create]
5
+ resource :admin, :only => [:new, :create]
6
+ end
7
+ devise_for :admins
8
+ root :to => 'home#index'
9
+ end
@@ -0,0 +1,39 @@
1
+ class CreateTables < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ ## Database authenticatable
5
+ t.string :email, :null => true, :default => ""
6
+ t.string :encrypted_password, :null => true, :default => ""
7
+
8
+ ## Recoverable
9
+ t.string :reset_password_token
10
+ t.datetime :reset_password_sent_at
11
+
12
+ ## Confirmable
13
+ t.string :confirmation_token
14
+ t.datetime :confirmed_at
15
+ t.datetime :confirmation_sent_at
16
+ t.string :unconfirmed_email # Only if using reconfirmable
17
+
18
+ t.string :username
19
+
20
+ ## Invitable
21
+ t.string :invitation_token, :limit => 60
22
+ t.datetime :invitation_created_at
23
+ t.datetime :invitation_sent_at
24
+ t.datetime :invitation_accepted_at
25
+ t.integer :invitation_limit
26
+ t.integer :invited_by_id
27
+ t.string :invited_by_type
28
+
29
+ t.timestamps
30
+ end
31
+ add_index :users, :invitation_token, :unique => true
32
+
33
+ create_table :admins do |t|
34
+ ## Database authenticatable
35
+ t.string :email, :null => true, :default => ""
36
+ t.string :encrypted_password, :null => true, :default => ""
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,10 @@
1
+ defaults: &defaults
2
+ host: localhost
3
+ allow_dynamic_fields: true
4
+ parameterize_keys: true
5
+ persist_in_safe_mode: true
6
+ raise_not_found_error: true
7
+
8
+ test:
9
+ <<: *defaults
10
+ database: devise_invitable-test-suite
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'