Skip to content

Commit

Permalink
merge upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiyuki committed May 14, 2013
1 parent 3cdfd27 commit 47a336b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/social_buttons.rb
Expand Up @@ -26,4 +26,4 @@ def self.config name = nil, &block
end

require "social_buttons/view_helper"
require "social_buttons/engine" if defined?(::Rails::Engine)
require "social_buttons/railtie" if defined?(Rails)
7 changes: 7 additions & 0 deletions lib/social_buttons/railtie.rb
@@ -0,0 +1,7 @@
module SocialButtons
class Railtie < ::Rails::Railtie
initializer 'social buttons config' do
ActionView::Base.send :include, ViewHelper
end
end
end

0 comments on commit 47a336b

Please sign in to comment.