Sha256: e41b38989a929718d6eb0d303c7264389314cda8a2c659df724691b61dba6382
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
# TODO This is my best attempt at allowing us to figure out where theme partials might be getting served from. # We can only inspect the source location of a class (not a module), and this gem has no other classes, so we need this. # See https://stackoverflow.com/questions/13012109/get-class-location-from-class-object for context. class BulletTrain::Themes::Base::PathSnitch def self.confess # This method allows us to call `BulletTrain::Themes::PathSnitch.method(:confess).source_location` and see where # this gem is being served from... which allows us to check it's `view/themes` directory for partials. end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-themes-base-1.0.0 | lib/bullet_train/themes/base/path_snitch.rb |