class MongodbLogger::Assets
Public Class Methods
instance(root = nil)
click to toggle source
# File lib/mongodb_logger/server/helpers/sprokets.rb, line 22 def instance(root = nil) assets_path = File.expand_path('../../../../../app/assets', __FILE__) @instance ||= new(assets_path) end
new(assets_path)
click to toggle source
Calls superclass method
# File lib/mongodb_logger/server/helpers/sprokets.rb, line 28 def initialize(assets_path) super append_path(File.join(assets_path, 'stylesheets')) append_path(File.join(assets_path, 'javascripts')) append_path(File.join(assets_path, 'images')) context_class.instance_eval do include AssetHelpers end end