lib/sinatra-cometio/options.rb in sinatra-cometio-0.5.6 vs lib/sinatra-cometio/options.rb in sinatra-cometio-0.5.7
- old
+ new
@@ -10,10 +10,11 @@
end
def self.default_options
{
:timeout => [120, lambda{|v| v.kind_of? Fixnum and v >= 20 }],
- :post_interval => [1, lambda{|v| [Fixnum, Float].include? v.class and v >= 1 }]
+ :post_interval => [1, lambda{|v| [Fixnum, Float].include? v.class and v >= 1 }],
+ :allow_crossdomain => [false, lambda{|v| [true, false].include? v }]
}
end
def self.options
@@options ||= (