Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add auto_facebook

  • Loading branch information...
commit 1c555b96a0c9dd4ef0525607b66e1bbe5b7228d7 1 parent 06e4344
@xdite authored
View
1  CHANGELOG.md
@@ -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
View
5 lib/bootstrappers/app_builder.rb
@@ -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
View
5 lib/bootstrappers/generators/app_generator.rb
@@ -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
View
4 templates/Gemfile_additions
@@ -19,6 +19,10 @@ gem "turbo-sprockets-rails3"
gem "rvm-capistrano"
+gem "omniauth"
+gem "omniauth-facebook"
+gem "auto-facebook"
+
gem "hipchat"
View
1  templates/common/_user_nav.html.erb
@@ -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 %>
Please sign in to comment.
Something went wrong with that request. Please try again.