You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file lib/curb-fu/core_ext.rb, it seems that curb-fu is extending the core. In that situation and as it is done here breaks some features of rails using .to_params
Sorry it broke something in rails for you--it's most definitely not supposed to do that. I'd like a few more details about that error you're seeing, so if you get me some info about how to reproduce it I can make sure we don't break your gear :). We don't use this library internally with Rails.
In the meantime, I've committed a changeset that does a better (read: actual) job of not over-writing existing #to_param methods :), which I suspect is the problem here. It's here, if you want to try patching your gem: 0878123 .
Thanks for the report; sorry it took a couple days to get on it.
Hello,
I'm seeing a major issue in curb-fu
In file lib/curb-fu/core_ext.rb, it seems that curb-fu is extending the core. In that situation and as it is done here breaks some features of rails using .to_params
Example:
cache [object, something] #in a view
throws: /Users/x/.rvm/gems/ruby-1.8.7-p299/gems/curb-fu-0.4.4/lib/curb-fu/core_ext.rb:45:in `to_param'
This makes the whole gem unusable for me as it is. Also, no offense, but seeing core extensions like that cannot be a good sign...
Cheers
The text was updated successfully, but these errors were encountered: