Sha256: 513aaa52ddc6e868b779a62f39b605d3b06dee8f2cde1dc1218c16752bd1ca9a
Contents?: true
Size: 917 Bytes
Versions: 2
Compression:
Stored size: 917 Bytes
Contents
require_relative '../workspace/extension' module Lanes module Access class Extension < Lanes::Extensions::Definition identifier "lanes-access" components 'modal', 'grid', 'select-field' root_path Pathname.new(__FILE__).dirname.expand_path def stylesheet_include 'lanes/access/styles' end def javascript_include 'lanes/access' end def client_namespace 'Access' end def client_paths [] end def client_bootstrap_data(view) data = {} if (user_id = view.session['user_id']) && (user = Lanes::User.where( id: user_id ).first) data.merge!(user.workspace_data) end data end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.1.6 | lib/lanes/access/extension.rb |
lanes-0.1.5 | lib/lanes/access/extension.rb |