Method: Sunspot::Type::DateRangeType#cast
- Defined in:
- lib/sunspot/type.rb
#cast(value) ⇒ Object
391 392 393 394 |
# File 'lib/sunspot/type.rb', line 391 def cast(value) return super unless m = value.match(/^\[(?<start>.+) TO (?<end>.+)\]$/) Range.new super(m[:start]), super(m[:end]) end |