search for: query_methods

Displaying 3 results from an estimated 3 matches for "query_methods".

2013 Mar 28
1
undefined method 'sanitize_limit' for #<ActiveRecord::Relation:0x2aaaad35d720>
...undefined method `sanitize_limit'' for #<ActiveRecord::Relation:0x2aaaad35d720> /some_package/lib/ruby/gems/1.8/gems/activerecord-3.1.12/lib/active_record/relation.rb:460:in `method_missing'' /some_package/lib/ruby/gems/1.8/gems/activerecord-3.1.12/lib/active_record/relation/query_methods.rb:208:in `build_arel'' /some_package/lib/ruby/gems/1.8/gems/activerecord-3.1.12/lib/active_record/relation/query_methods.rb:196:in `arel'' /some_package/lib/ruby/gems/1.8/gems/activerecord-3.1.12/lib/active_record/relation.rb:112:in `to_a'' /some_package/lib/ruby/gems/1....
2011 Jul 26
0
active record wants root password, not sure why ..
...ecord-3.0.9/ lib/active_r ecord/relation.rb:125:in `scoping'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/ lib/active_r ecord/relation.rb:370:in `method_missing'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/ lib/active_r ecord/relation/query_methods.rb:182:in `build_arel'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/ lib/active_r ecord/relation/query_methods.rb:149:in `arel'' from C:/Ruby192/lib/ruby/gems/1.9.1/gems/activerecord-3.0.9/ lib/active_r ecord/relation.rb:64:in `to_a''...
2011 Nov 22
4
A "strict Arel" mode for ActiveRecord to prevent SQL injection vulnerabilities
...f String === column column = Nodes::SqlLiteral.new(column.to_s) if Symbol === column - code sites in ActiveRecord where a String is explicitly converted into a SqlLiteral, e.g. to support the Table.where(“foo = ‘#{bar}’”) form of queries: gems/activerecord-3.1.1/lib/active_record/relation/query_methods.rb def collapse_wheres(arel, wheres) [...] (wheres - equalities).each do |where| where = Arel.sql(where) if String === where #2 is necessary to prevent direct execution of SQL statements that are not constructed via Arel, e.g by direct calls to find_by_sql. Implementation Ideas: --...