Permalink
Browse files

added changelog and fixed view helper bug

  • Loading branch information...
1 parent adf93d8 commit a8f065ae7ffd5f1cf526cd44c7c8636e54a8da0f @kristianmandrup committed Apr 17, 2012
Showing with 7 additions and 4 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 VERSION
  3. +1 −1 lib/facebook-social_plugins.rb
  4. +2 −2 lib/facebook-social_plugins/helper/view.rb
View
@@ -0,0 +1,3 @@
+# 0.2.1
+
+Fixed Rails view helper bug
View
@@ -1 +1 @@
-0.2.0
+0.2.1
@@ -21,7 +21,7 @@ def self.helpers
['script', 'view', 'open_graph']
end
- def self.plugin name, options
+ def self.plugin name, options = {}
klass = "FacebookSocialPlugins::Plugin::#{name.to_s.camelize}".constantize
klass.new(options).render
end
@@ -13,8 +13,8 @@ def fb_activity namespace, action
end
FacebookSocialPlugins.plugins.each do |name|
- define_method :"fb_#{name}" do |options = {}|
- FacebookSocialPlugins.plugin name, options
+ define_method :"fb_#{name}" do |options|
+ FacebookSocialPlugins.plugin name, options
end
end

0 comments on commit a8f065a

Please sign in to comment.