diff --git a/app/models/casino/service_ticket.rb b/app/models/casino/service_ticket.rb index e2b8f863..eaf0f76e 100644 --- a/app/models/casino/service_ticket.rb +++ b/app/models/casino/service_ticket.rb @@ -15,7 +15,7 @@ def self.cleanup_consumed end def self.cleanup_consumed_hard - self.delete_all(['created_at < ? AND consumed = ?', (CASino.config.service_ticket[:lifetime_consumed].seconds * 2).ago, true]) + self.delete_all(['created_at < ? AND consumed = ?', (CASino.config.service_ticket[:lifetime_consumed] * 2).seconds.ago, true]) end diff --git a/casino.gemspec b/casino.gemspec index f936bd9e..9a6ccc21 100644 --- a/casino.gemspec +++ b/casino.gemspec @@ -33,7 +33,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'webmock', '~> 1.9' s.add_development_dependency 'coveralls', '~> 0.7' - s.add_runtime_dependency 'rails', '~> 4.1.0' + s.add_runtime_dependency 'rails', '>= 4.1.0', '< 4.3.0' s.add_runtime_dependency 'sass-rails', '~> 4.0.0' s.add_runtime_dependency 'http_accept_language', '~> 2.0.0.pre' s.add_runtime_dependency 'addressable', '~> 2.3'