lib/delorean/base.rb in delorean_lang-0.3.34 vs lib/delorean/base.rb in delorean_lang-0.3.35

- old
+ new

@@ -2,11 +2,11 @@ require 'active_record' require 'bigdecimal' module Delorean - DT_TYPES = [Date, Time, ActiveSupport::TimeWithZone] + DT_TYPES = [Date, Time, ActiveSupport::TimeWithZone] NUM_OR_STR = [Numeric, String] NUM_OR_NIL = [nil, Integer] # FIXME: the whitelist is quite hacky. It's currently difficult to # override it. A user will likely want to directly modify this @@ -14,10 +14,10 @@ # rethought. RUBY_WHITELIST = { attributes: [ActiveRecord::Base], between?: [NUM_OR_STR, NUM_OR_STR, NUM_OR_STR], between: "between?", - compact: [Array], + compact: [[Array, Hash]], to_set: [Array], flatten: [Array, NUM_OR_NIL], length: [[String, Enumerable]], max: [Array], member: "member?",