Un fichier pour diminuer certains warning à la compilation des sass
This commit is contained in:
parent
37c0829b6f
commit
837a69e6ff
15
config/initializers/shut_up_sass.rb
Normal file
15
config/initializers/shut_up_sass.rb
Normal file
@ -0,0 +1,15 @@
|
||||
module Sass
|
||||
module Rails
|
||||
# Shut up extra warning calls from sass
|
||||
class SassImporter < Sass::Importers::Filesystem
|
||||
def marshal_dump
|
||||
# Return some kind of unique fingerprint to Sass
|
||||
@_marshal_id ||= object_id.to_s(16)
|
||||
end
|
||||
|
||||
def marshal_load(*_args)
|
||||
# Do nothing, we don't actually care if this is Marshalable
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user