Sha256: 2ef4a7e4a0a2f645a6ee8bbb86350114ce4824b37fb3f693e0e79bba6a5f2e66

Contents?: true

Size: 947 Bytes

Versions: 10

Compression:

Stored size: 947 Bytes

Contents

Application.services_manifest = ->
  # fill in your manifest here
  # example:
  # if you want to trigger a service on your entire app
  # $('body').trigger 'application:services:service_name'
  # 
  # If you want a more fine grained control for 
  # different pages you can add a class to your body 
  # in your views/layouts/application.html.erb
  # on your body tag you can do something like this
  #
  # <body class="[controller_name] [action_name]">
  #
  # You now have a more fine grained control in 
  # your manifest file
  # $('body.posts.show').trigger 'application:services:service_name'
  #
  # if you need to trigger the same services on multiple pages
  # $('body.posts.show,
  #    body.dashboard.show,
  #    body.photos.index').trigger 'application:services:service_name'
  # 

Application.run_ready = ->
  Application.services_manifest()

$(document).ready Application.run_ready
$(document).on 'page:load', Application.run_ready

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
writefully-0.4.10 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.8 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.7 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.6 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.5 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.4 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.2 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.1 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.4.0 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee
writefully-0.3.6 app/assets/javascripts/writefully/writefully/initializers/manifest.coffee