class React::Rails::HotLoader::AssetPath

We want to include different files in dev/prod. The production (dummy) file is empty!

Constants

GEM_LIB_PATH

Attributes

to_s[R]

Public Class Methods

new(dummy: false) click to toggle source
# File lib/hot_loader/asset_path.rb, line 11
def initialize(dummy: false)
  asset_path = dummy ? "assets/dummy": "assets"
  @to_s = File.join(GEM_LIB_PATH, asset_path)
end