Sha256: fb2e1f74c03bf953bac344e410e4b4b9c5f1435fb3b7bf00f427afce40df6992

Contents?: true

Size: 375 Bytes

Versions: 36

Compression:

Stored size: 375 Bytes

Contents

require 'httparty'

module Spree
  class Alert
    def self.current(host)
      params = {
        version: Spree.version,
        name: Spree::Store.current.name,
        host: host,
        rails_env: Rails.env,
        rails_version: Rails.version
      }

      HTTParty.get('http://alerts.spreecommerce.com/alerts.json', query: params).parsed_response
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
spree_core-3.0.4 app/models/spree/alert.rb
spree_core-2.4.10 app/models/spree/alert.rb
spree_core-2.3.13 app/models/spree/alert.rb
spree_core-3.0.3 app/models/spree/alert.rb
spree_core-2.4.9 app/models/spree/alert.rb
spree_core-2.3.12 app/models/spree/alert.rb
spree_core-3.0.2 app/models/spree/alert.rb
spree_core-2.4.8 app/models/spree/alert.rb
spree_core-2.3.11 app/models/spree/alert.rb
spree_core-3.0.1 app/models/spree/alert.rb
spree_core-2.4.7 app/models/spree/alert.rb
spree_core-2.3.10 app/models/spree/alert.rb
spree_core-3.0.0 app/models/spree/alert.rb
spree_core-2.4.6 app/models/spree/alert.rb
spree_core-2.3.9 app/models/spree/alert.rb
spree_core-2.3.8 app/models/spree/alert.rb
spree_core-2.4.5 app/models/spree/alert.rb
spree_core-3.0.0.rc4 app/models/spree/alert.rb
spree_core-3.0.0.rc3 app/models/spree/alert.rb
spree_core-2.4.4 app/models/spree/alert.rb