lib/roadie/asset_provider.rb in roadie-4.0.0 vs lib/roadie/asset_provider.rb in roadie-5.0.0
- old
+ new
@@ -5,9 +5,11 @@
# standard behavior for asset providers.
#
# It helps you by declaring {#find_stylesheet!} in the terms of #find_stylesheet in your own class.
module AssetProvider
def find_stylesheet!(name)
- find_stylesheet(name) or raise CssNotFound.new(name, nil, self)
+ find_stylesheet(name) or raise(
+ CssNotFound.new(css_name: name, provider: self)
+ )
end
end
end