Changeset 166
- Timestamp:
- 02/12/08 17:42:29 (6 months ago)
- Files:
-
- incubator/sentinel/lib/relevance/sentinel/active_record.rb (modified) (1 diff)
- incubator/sentinel/README (modified) (1 diff)
- incubator/sentinel/test/relevance/sentinel/active_record_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
incubator/sentinel/lib/relevance/sentinel/active_record.rb
r156 r166 17 17 result[:limit] = Integer result[:limit] if result[:limit] 18 18 result[:offset] = Integer result[:offset] if result[:offset] 19 result[:order] = self.connection.quote(result[:order]) if result[:order]20 19 result 21 20 end incubator/sentinel/README
r158 r166 34 34 Warning! 35 35 ============ 36 Sentinel is just a thought experiment. It appears increasingly unlikely that 37 there is a good way to handle escaping in general. 38 36 39 Sentinel is not production ready. At this time it is probably broken in 37 40 both directions, i.e. incubator/sentinel/test/relevance/sentinel/active_record_test.rb
r156 r166 27 27 end 28 28 29 it "quotes options[:order]" do30 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 end35 29 end 36 30
