Sha256: ba395b690528dbad191677a6607ebc15b576fd40090849d0c247594f0cbe68f0
Contents?: true
Size: 989 Bytes
Versions: 10
Compression:
Stored size: 989 Bytes
Contents
Application.services_manifest = -> # fill in your manifest here # example: # if you want to trigger a service on your entire app # $('body').trigger '<%= file_name.downcase %>: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 '<%= file_name.downcase %>:services:service_name' # # if you need to trigger the same services on multiple pages # $('body.posts.show, # body.dashboard.show, # body.photos.index').trigger '<%= file_name.downcase %>: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