mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-09 23:08:05 -05:00
Run tests with mongoid
This commit is contained in:
1
Gemfile
1
Gemfile
@@ -25,7 +25,6 @@ platforms :ruby do
|
||||
gem "sqlite3"
|
||||
end
|
||||
|
||||
|
||||
platforms :mri_19 do
|
||||
group :mongoid do
|
||||
gem "mongoid", github: "mongoid/mongoid", branch: "master"
|
||||
|
||||
@@ -2,6 +2,7 @@ module Shim
|
||||
extend ::ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
include ::ActiveModel::MassAssignmentSecurity
|
||||
include ::Mongoid::Timestamps
|
||||
field :created_at, :type => DateTime
|
||||
end
|
||||
|
||||
@@ -32,8 +32,10 @@ module RailsApp
|
||||
|
||||
config.action_mailer.default_url_options = { :host => "localhost:3000" }
|
||||
|
||||
# Disable forcing whitelist attributes from protected attributes.
|
||||
config.active_record.whitelist_attributes = false
|
||||
if DEVISE_ORM == :active_record
|
||||
# Disable forcing whitelist attributes from protected attributes.
|
||||
config.active_record.whitelist_attributes = false
|
||||
end
|
||||
|
||||
# This was used to break devise in some situations
|
||||
config.to_prepare do
|
||||
|
||||
Reference in New Issue
Block a user