Closed neilabdev closed 8 years ago
Turns out to be a bug in ruby when version 2.3.0 and other versions. Version ruby-2.2.3 and ruby-2.0.0-p648 seem to work just fine. Its actually the difference in output of the interolate function when building the query that fails:
# activerecord-3.2.22.2/lib/active_record/associations/join_dependency/join_association.rb
def interpolate(conditions)
if conditions.respond_to?(:to_proc)
instance_eval(&conditions) # this returns nil when the failure occurs, other versions don't fail here.
else
conditions
end
end
While trying to use the bcms_kcfinder module in rails 3.2.22.2 and BrowserCMS 3.5.7, I notice it was receiving various errors, which I traced back to an exception cause when trying to list files in a given section. To test, you can run the following in the console:
Which Returns:
The file causing the issue: