module Mqbe
Constants
- VERSION
Public Class Methods
assets_path()
click to toggle source
# File lib/mqbe.rb, line 14 def assets_path @gem_path ||= File.expand_path "../assets", File.dirname(__FILE__) end
javascripts_path()
click to toggle source
# File lib/mqbe.rb, line 22 def javascripts_path File.join assets_path, 'javascripts' end
load!()
click to toggle source
# File lib/mqbe.rb, line 5 def load! if defined?(::Rails) register_rails_engine elsif defined?(::Sprockets) register_sprockets end configure_sass end
stylesheets_path()
click to toggle source
# File lib/mqbe.rb, line 18 def stylesheets_path File.join assets_path, 'stylesheets' end
Private Class Methods
configure_sass()
click to toggle source
# File lib/mqbe.rb, line 28 def configure_sass require 'sass' ::Sass.load_paths << stylesheets_path end
register_rails_engine()
click to toggle source
# File lib/mqbe.rb, line 33 def register_rails_engine require "mqbe/engine" end
register_sprockets()
click to toggle source
# File lib/mqbe.rb, line 37 def register_sprockets Sprockets.append_path(stylesheets_path) Sprockets.append_path(javascripts_path) end