devise_facebook_connectable 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -46,28 +46,7 @@ I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), *%w[de
46
46
 
47
47
  # Add +:facebook_connectable+ serializers and strategies to defaults.
48
48
  #
49
+ Devise::ALL.unshift :facebook_connectable
49
50
  Devise::STRATEGIES.unshift :facebook_connectable
50
51
  Devise::SERIALIZERS.unshift :facebook_connectable
51
52
  Devise::CONTROLLERS[:sessions].unshift :facebook_connectable
52
-
53
- # PATCH:BEGIN: Very temporary one, while awaiting Devise 0.7.2.
54
- Devise::Models.module_eval do
55
- def devise(*modules)
56
- raise "You need to give at least one Devise module" if modules.empty?
57
-
58
- options = modules.extract_options!
59
- modules = Devise.all if modules.include?(:all)
60
- modules -= Array(options.delete(:except))
61
- # PATCH: REMOVED: modules = Devise::ALL & modules
62
-
63
- Devise.orm_class.included_modules_hook(self, modules) do
64
- modules.each do |m|
65
- devise_modules << m.to_sym
66
- include Devise::Models.const_get(m.to_s.classify)
67
- end
68
-
69
- options.each { |key, value| send(:"#{key}=", value) }
70
- end
71
- end
72
- end
73
- # PATCH:END
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_facebook_connectable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonas Grimfelt