Sha256: 45e789712bdf98cb7044c32ea202f1a8c7f0fe929e8eca6364f0b6d6af4a5f6b

Contents?: true

Size: 1.27 KB

Versions: 3

Compression:

Stored size: 1.27 KB

Contents

App.Views.Main = {}
App.Views.Main.Users = {}
App.Views.Main.Pages = {}
App.Views.Main.Articles = {}

App.Views.User = {}
App.Views.User.Articles = {}

App.Views.Admin = {}
App.Views.Admin.Users = {}
App.Views.Admin.Articles = {}
App.Views.Admin.Comments = {}

App.Views.Layouts = {}
App.Views.Shared = {}

loco = new App.Loco
  turbolinks: 2                               # false by default
  notifications:
    enable: true                              # false by default
    pollingTime: 3000                         # 3000 ms by default
    log: true                                 # false by default
    ssl: false                                # your current protocol by default
    location: 'notification-center'           # 'notification-center' by default
    size: 10                                  # 100 by default
    allowedDisconnectionTime: 10              # 10 by default [sec]
  locale: 'en'                                # 'en' by default
  #protocolWithHost: 'http://localhost:3000'  # if provided - loco will be using absolute path
                                              # instead of site-root-relative in all xhr requests
  postInit: ->
    time = if $('body').data('rails-env') is 'test' then 1000 else 3000
    App.Env.loco.getWire().setPollingTime time

loco.init()

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loco-rails-1.0.2 test/dummy/app/assets/javascripts/initializers/loco.coffee
loco-rails-1.0.1 test/dummy/app/assets/javascripts/initializers/loco.coffee
loco-rails-1.0.0 test/dummy/app/assets/javascripts/initializers/loco.coffee