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



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

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