Class: ActiveRecord::Extensions::OracleRegexp
- Inherits:
-
RegexpBase
- Object
- RegexpBase
- ActiveRecord::Extensions::OracleRegexp
- Defined in:
- lib/ar-extensions/extensions.rb
Overview
ActiveRecord::Extension for implementing Regexp implementation for Oracle. See documention for RegexpBase.
Constant Summary
Constants inherited from RegexpBase
Class Method Summary collapse
Methods inherited from RegexpBase
Class Method Details
.process(key, val, caller) ⇒ Object
415 416 417 418 419 |
# File 'lib/ar-extensions/extensions.rb', line 415 def self.process( key, val, caller ) return nil unless val.is_a?( Regexp ) r = field_result( key, caller ) return Result.new( "#{r.negate? ? ' NOT ':''} REGEXP_LIKE(#{caller.quoted_table_name}.#{r.fieldname} , ?)", val ) end |