Class: Spree::Alert
- Inherits:
-
Object
- Object
- Spree::Alert
- Defined in:
- app/models/spree/alert.rb
Class Method Summary collapse
Class Method Details
.current(host) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/models/spree/alert.rb', line 5 def self.current(host) params = { version: Spree.version, name: Spree::Config[:site_name], host: host, rails_env: Rails.env, rails_version: Rails.version } HTTParty.get('http://alerts.spreecommerce.com/alerts.json', query: params).parsed_response end |