Class: Maglev::FetchSite

Inherits:
Object
  • Object
show all
Includes:
Injectable
Defined in:
app/services/maglev/fetch_site.rb

Overview

Fetch the site and set up the Translatable available locales

Instance Method Summary collapse

Instance Method Details

#callObject



8
9
10
11
12
# File 'app/services/maglev/fetch_site.rb', line 8

def call
  Maglev::Site.first.tap do |site|
    change_default_locales(site)
  end
end