Cleanup trailing whitespace
This commit is contained in:
parent
4e7cd18a04
commit
3f03ec02ad
|
@ -1,6 +1,6 @@
|
|||
### Please read before contributing
|
||||
|
||||
1) Do not post questions in the issues tracker. If you have any questions about Devise, search the [Wiki](https://github.com/plataformatec/devise/wiki) or use the [Mailing List](https://groups.google.com/group/plataformatec-devise) or [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
|
||||
1) Do not post questions in the issues tracker. If you have any questions about Devise, search the [Wiki](https://github.com/plataformatec/devise/wiki) or use the [Mailing List](https://groups.google.com/group/plataformatec-devise) or [Stack Overflow](http://stackoverflow.com/questions/tagged/devise).
|
||||
|
||||
2) If you find a security bug, **DO NOT** submit an issue here. Please send an e-mail to [developers@plataformatec.com.br](mailto:developers@plataformatec.com.br) instead.
|
||||
|
||||
|
|
|
@ -14,4 +14,4 @@ module Devise
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -100,4 +100,4 @@ module Devise
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -8,4 +8,4 @@ Warden::Manager.after_set_user do |record, warden, options|
|
|||
warden.logout(scope)
|
||||
throw :warden, :scope => scope, :message => record.inactive_message
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -18,4 +18,4 @@ module Devise
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -4,4 +4,4 @@ Warden::Manager.after_set_user :except => :fetch do |record, warden, options|
|
|||
record.remember_me && warden.authenticated?(scope)
|
||||
Devise::Hooks::Proxy.new(warden).remember_me(record)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -25,4 +25,4 @@ Devise.with_options :model => true do |d|
|
|||
|
||||
# Stats for last, so we make sure the user is really signed in
|
||||
d.add_module :trackable
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
require 'orm_adapter/adapters/active_record'
|
||||
|
||||
ActiveRecord::Base.extend Devise::Models
|
||||
ActiveRecord::Base.extend Devise::Models
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
require 'orm_adapter/adapters/mongoid'
|
||||
|
||||
Mongoid::Document::ClassMethods.send :include, Devise::Models
|
||||
Mongoid::Document::ClassMethods.send :include, Devise::Models
|
||||
|
|
|
@ -17,4 +17,4 @@ module Devise
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,4 +11,4 @@ module Devise
|
|||
|
||||
@instance = new
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
Some setup you must do manually if you haven't yet:
|
||||
|
||||
1. Ensure you have defined default url options in your environments files. Here
|
||||
is an example of default_url_options appropriate for a development environment
|
||||
1. Ensure you have defined default url options in your environments files. Here
|
||||
is an example of default_url_options appropriate for a development environment
|
||||
in config/environments/development.rb:
|
||||
|
||||
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
|
||||
|
|
|
@ -7,12 +7,12 @@ if DEVISE_ORM == :mongoid
|
|||
tests Mongoid::Generators::DeviseGenerator
|
||||
destination File.expand_path("../../tmp", __FILE__)
|
||||
setup :prepare_destination
|
||||
|
||||
|
||||
test "all files are properly created" do
|
||||
run_generator %w(monster)
|
||||
assert_file "app/models/monster.rb", /devise/
|
||||
end
|
||||
|
||||
|
||||
test "all files are properly deleted" do
|
||||
run_generator %w(monster)
|
||||
run_generator %w(monster), :behavior => :revoke
|
||||
|
|
|
@ -110,12 +110,12 @@ class MappingTest < ActiveSupport::TestCase
|
|||
assert mapping.lockable?
|
||||
assert_not mapping.omniauthable?
|
||||
end
|
||||
|
||||
|
||||
test 'find mapping by path' do
|
||||
assert_raise RuntimeError do
|
||||
Devise::Mapping.find_by_path!('/accounts/facebook/callback')
|
||||
end
|
||||
|
||||
|
||||
assert_nothing_raised do
|
||||
Devise::Mapping.find_by_path!('/:locale/accounts/login')
|
||||
end
|
||||
|
@ -123,5 +123,5 @@ class MappingTest < ActiveSupport::TestCase
|
|||
assert_nothing_raised do
|
||||
Devise::Mapping.find_by_path!('/accounts/facebook/callback', :path)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -180,5 +180,5 @@ class RecoverableTest < ActiveSupport::TestCase
|
|||
:reset_password_sent_at,
|
||||
:reset_password_token
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -54,4 +54,4 @@ class OmniAuthConfigTest < ActiveSupport::TestCase
|
|||
config_class = config.strategy_class
|
||||
assert_equal MyStrategy, config_class
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
module Shim
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,4 +3,4 @@ class Admins::SessionsController < Devise::SessionsController
|
|||
flash[:special] = "Welcome to #{controller_path.inspect} controller!"
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
class Publisher::RegistrationsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
class Publisher::SessionsController < ApplicationController
|
||||
end
|
||||
end
|
||||
|
|
|
@ -11,4 +11,4 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|||
sign_in user
|
||||
render :text => ""
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Welcome to "sessions/new" view!
|
||||
<%= render :file => "devise/sessions/new" %>
|
||||
<%= render :file => "devise/sessions/new" %>
|
||||
|
|
|
@ -1 +1 @@
|
|||
Admin dashboard
|
||||
Admin dashboard
|
||||
|
|
|
@ -1 +1 @@
|
|||
Home!
|
||||
Home!
|
||||
|
|
|
@ -1 +1 @@
|
|||
Join
|
||||
Join
|
||||
|
|
|
@ -1 +1 @@
|
|||
User dashboard
|
||||
User dashboard
|
||||
|
|
Loading…
Reference in New Issue