Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Please add content.

  • Loading branch information...
commit ffc5ef6c81dda891550041dc0ad04b55b487775b 1 parent 9399265
@kalasjocke kalasjocke authored
View
1  init.rb
@@ -0,0 +1 @@
+require 'authlogic_facebook_connect'
View
6 lib/authlogic_facebook_connect.rb
@@ -0,0 +1,6 @@
+# require "authlogic_facebook_connect/version"
+require "authlogic_facebook_connect/acts_as_authentic"
+require "authlogic_facebook_connect/session"
+
+ActiveRecord::Base.send(:include, AuthlogicFacebookConnect::ActsAsAuthentic)
+Authlogic::Session::Base.send(:include, AuthlogicFacebookConnect::Session)
View
22 lib/authlogic_facebook_connect/acts_as_authentic.rb
@@ -0,0 +1,22 @@
+module AuthlogicFacebookConnect
+ module ActsAsAuthentic
+ def self.included(base)
+ base.class_eval do
+ extend Config
+
+ add_acts_as_authentic_module(Methods, :prepend)
+ end
+ end
+
+ module Config
+ end
+
+ module Methods
+ def self.included(base)
+ base.class_eval do
+ # validations
+ end
+ end
+ end
+ end
+end
View
20 lib/authlogic_facebook_connect/session.rb
@@ -0,0 +1,20 @@
+module AuthlogicFacebookConnect
+ module Session
+ def self.included(base)
+ base.class_eval do
+ extend Config
+ include Methods
+ end
+ end
+
+ module Config
+ end
+
+ module Methods
+ def self.included(base)
+ base.class_eval do
+ end
+ end
+ end
+ end
+end
View
0  lib/authlogic_facebook_connect/version.rb
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.