Class: ActiveResource::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/eco_apps/extensions/active_resource.rb

Direct Known Subclasses

CoreService

Class Method Summary collapse

Class Method Details

.set_siteObject



4
# File 'lib/eco_apps/extensions/active_resource.rb', line 4

alias_method :set_site, :site=

.site=(site) ⇒ Object



6
7
8
9
# File 'lib/eco_apps/extensions/active_resource.rb', line 6

def site=(site)
  site = CoreService.app(site.to_s).url if site.is_a?(Symbol)
  set_site(site)
end