class Pieces::RouteCompiler::ViewModel
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/pieces/route_compiler.rb, line 54 def initialize(*) super _prepare_context if respond_to?(:_prepare_context) end
Public Instance Methods
asset_prefix()
click to toggle source
# File lib/pieces/route_compiler.rb, line 59 def asset_prefix config.asset_prefix end
compute_asset_path(path, options = {})
click to toggle source
Calls superclass method
# File lib/pieces/route_compiler.rb, line 67 def compute_asset_path(path, options = {}) if env.resolve!(path) File.join(asset_prefix || '/assets', path) else super end end
env()
click to toggle source
# File lib/pieces/route_compiler.rb, line 63 def env config.env end