lib/magick_columns/defaults.rb in magick_columns-0.0.1 vs lib/magick_columns/defaults.rb in magick_columns-0.0.2

- old
+ new

@@ -1,6 +1,6 @@ -module MagicColumns +module MagickColumns DEFAULTS = { string: { operator: :like, mask: '%%%{t}%%', condition: ->(t) { t =~ /.+/ }, @@ -25,7 +25,15 @@ operator: '=', mask: '%{t}', condition: ->(t) { ::Timeliness.parse(t.to_s) }, convert: ->(t) { ::Timeliness.parse(t.to_s) } } + } + + I18N_DEFAULTS = { + from: ['from', 'since'], + until: ['to', 'until'], + and: ['and'], + or: ['or'], + today: ['today', 'now'] } end \ No newline at end of file