Changeset 166

Show
Ignore:
Timestamp:
02/12/08 17:42:29 (6 months ago)
Author:
stu
Message:

quoting options does not work

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • incubator/sentinel/lib/relevance/sentinel/active_record.rb

    r156 r166  
    1717    result[:limit] = Integer result[:limit] if result[:limit] 
    1818    result[:offset] = Integer result[:offset] if result[:offset] 
    19     result[:order] = self.connection.quote(result[:order]) if result[:order] 
    2019    result 
    2120  end 
  • incubator/sentinel/README

    r158 r166  
    3434Warning! 
    3535============ 
     36Sentinel is just a thought experiment. It appears increasingly unlikely that 
     37there is a good way to handle escaping in general. 
     38 
    3639Sentinel is not production ready. At this time it is probably broken in  
    3740both directions, i.e. 
  • incubator/sentinel/test/relevance/sentinel/active_record_test.rb

    r156 r166  
    2727  end 
    2828 
    29   it "quotes options[:order]" do 
    30     connection = stub(:quote => :quoted_options) 
    31     @sentinel.expects(:connection).returns(connection) 
    32     @sentinel.sanitize_find_options!(:order => :stubbed_options).should ==  
    33         {:order => :quoted_options} 
    34   end 
    3529end 
    3630