Sha256: e433e93e5c9207f8f2b366a1adbb8f3ea3d785b7f4b4bc394e89219c6c84e7ae
Contents?: true
Size: 681 Bytes
Versions: 6
Compression:
Stored size: 681 Bytes
Contents
module Lanes module API module HelperMethods def lanes_javascript_tag javascript_tag( 'lanes' ) end def lanes_stylesheet_tag stylesheet_tag( 'lanes' ) end def client_bootstrap_data Oj.dump(Extensions.client_bootstrap_data(self), mode: :compat) end def csrf_token Rack::Csrf.csrf_token(env) end def lanes_api_url Lanes.config.mounted_at end def data @json_data ||= Oj.load( request.body.read ) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems