Class: Spree::Alert

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
app/models/spree/alert.rb

Class Method Summary collapse

Class Method Details

.current(host) ⇒ Object



6
7
8
9
10
11
12
# File 'app/models/spree/alert.rb', line 6

def self.current(host)
  find(:all, :params => { :version => Spree.version,
                          :name => Spree::Config[:site_name],
                          :host => host,
                          :rails_env => Rails.env,
                          :rails_version => Rails.version })
end