module Rolodex
Constants
- VERSION
Public Class Methods
asset_path()
click to toggle source
# File lib/rolodex.rb, line 25 def asset_path @asset_path ||= File.join gem_path, 'vendor', 'assets' end
gem_path()
click to toggle source
# File lib/rolodex.rb, line 21 def gem_path @gem_path ||= File.expand_path '..', File.dirname(__FILE__) end
load!()
click to toggle source
Inspired by bootstrap-sass
# File lib/rolodex.rb, line 7 def load! Angular::Html2js.configure do |config| config.module_name = 'templates' config.init_sprockets end if defined?(::Rails) require 'rolodex/engine' elsif defined?(:Sprockets) Sprockets.append_path(File.join(asset_path, 'stylesheets')) Sprockets.append_path(File.join(asset_path, 'javascripts')) end end