Patches: Browse | Submit New | Admin

[#21788] Fix publishers to work with Rails edge

Date:
2008-09-03 07:20
Priority:
3
Submitted By:
Victor Costan (costan)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Fix publishers to work with Rails edge

Detailed description
For some reason, send! doesn't work in Rails edge (I believe it was supposed to be deprecated anyway?). I replaced send
with __send__ which should work all the way through Ruby 1.9.



Index: facebooker/lib/facebooker/rails/publisher.rb
===================================================================
--- facebooker/lib/facebooker/rails/publisher.rb	(revision 479)
+++ facebooker/lib/facebooker/rails/publisher.rb	(working copy)
@@ -412,7 +412,7 @@
         def inherited(child)
           super          
           child.master_helper_module=Module.new
-          child.master_helper_module.send!(:include,self.master_helper_module)
+          child.master_helper_module.__send__(:include,self.master_helper_module)
           child.send(:include, child.master_helper_module)      
         end
     

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item