Class: FxosRails::Manifest

Inherits:
Object
  • Object
show all
Defined in:
lib/fxos_rails/manifest.rb

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/fxos_rails/manifest.rb', line 7

def as_json(*)
  {
    name: t('app.name'),
    description: t('app.description'),
    version: t('app.version'),
    icons: {
       "60" => "/icons/icon-60.png",
       "64" => "/icons/icon-64.png",
      "128" => "/icons/icon-128.png",
    },
    developer: {
      name: t('app.developer.name'),
      url: t('app.developer.url'),
    },
    type: 'web',
    default_locale: I18n.locale,
    launch_path: '/index.html'
  }
end

#t(*args) ⇒ Object



3
4
5
# File 'lib/fxos_rails/manifest.rb', line 3

def t(*args)
  I18n.t(*args)
end