Permalink
Browse files

add auto_facebook

  • Loading branch information...
xdite committed Apr 8, 2013
1 parent 06e4344 commit 1c555b96a0c9dd4ef0525607b66e1bbe5b7228d7
View
@@ -3,6 +3,7 @@ alpha
0.2.1 (Apr 8, 2013)
* add hipchat
+* add auto_facebook
0.2.0.1 (Jan 25, 2013)
* fix email_sender
@@ -34,6 +34,11 @@ def generate_devise
generate 'devise User'
end
+ def generate_auto_facebook
+ generate 'auto_facebook:user'
+ generate 'auto_facebook:install'
+ end
+
def replace_email_sender_for_devise
replace_in_file 'config/initializers/devise.rb', /config\.mailer_sender = \".+\"/ , "config.mailer_sender = Setting.email_sender"
end
@@ -97,6 +97,7 @@ def setup_database
def configure_app
say 'Configuring app'
build :setup_devise
+ build :build_auto_facebook
build :build_settings_from_config
end
@@ -111,6 +112,10 @@ def setup_devise
build :replace_email_sender_for_devise
end
+ def build_auto_facebook
+ build :generate_auto_facebook
+ end
+
def customize_error_pages
say 'Customizing the 500/404/422 pages'
build :customize_error_pages
@@ -19,6 +19,10 @@ gem "turbo-sprockets-rails3"
gem "rvm-capistrano"
+gem "omniauth"
+gem "omniauth-facebook"
+gem "auto-facebook"
+
gem "hipchat"
@@ -20,6 +20,7 @@
<% else %>
<li> <%= link_to( "Sign Up" ,new_user_registration_path) %> </li>
<li> <%= link_to( "Login", new_user_session_path ) %> </li>
+ <li> <%= link_to( "FB Login", "/users/auth/facebook" ) %> </li>
<% end %>

0 comments on commit 1c555b9

Please sign in to comment.