Sha256: be969ff09d0d77b53c288e33f4de0073a87f632a67325705b99037ec69bbc0b3
Contents?: true
Size: 801 Bytes
Versions: 1
Compression:
Stored size: 801 Bytes
Contents
module Lanes module API module HelperMethods def lanes_javascript_tag javascript_tag( Extensions.require_workspace? ? 'lanes/workspace' : 'lanes/minimal' ) end def lanes_stylesheet_tag stylesheet_tag( Extensions.require_workspace? ? 'lanes/workspace' : 'lanes/minimal' ) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.2 | lib/lanes/api/helper_methods.rb |