./lib/lux_assets/asset.rb in lux_assets-0.1.10 vs ./lib/lux_assets/asset.rb in lux_assets-0.2.1
- old
+ new
@@ -3,11 +3,11 @@
class LuxAssets::Asset
PUBLIC_ASSETS = './public/assets'
def initialize ext, name
@ext = ext == :js ? :js : :css
- @name = name
- @files = LuxAssets.to_h[ext][name]
+ @name = name.to_s
+ @files = LuxAssets.to_h[ext][@name]
@target = "#{@ext}/#{@name}"
end
def js?
@ext == :js
\ No newline at end of file