Sha256: 75c3dde39a7b947ba546baf359673858583eec91fb52b747c1958ca8e32756c8

Contents?: true

Size: 514 Bytes

Versions: 2

Compression:

Stored size: 514 Bytes

Contents

require 'service_locator'
class SignupService < Service(:crm)
  puts "@@@@ Site Detail count #{SiteDetail.count}"
  site_type = SiteDetail.first.site_type unless SiteDetail.first.blank?
  if site_type && (site_type == "community" || site_type == "ccslocal" || site_type == "ccsmain")
    self.element_name = "ccslocal_site"
    self.collection_name = "ccslocal_sites"
    self.prefix = "/services/"
  else
    self.element_name = "site"
    self.collection_name = "sites"
    self.prefix = "/services/"
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ccs_core_gem-0.0.3 app/models/signup_service.rb
ccs_core_gem-0.0.2 app/models/signup_service.rb