Sha256: 55c60a163d4cca4865c2323d48eb13c9ee4875a101e3998cb7ea5a15214b2aee
Contents?: true
Size: 431 Bytes
Versions: 17
Compression:
Stored size: 431 Bytes
Contents
class TaskList def self.root_path @root_path ||= Pathname.new(File.expand_path("../../../", __FILE__)) end def self.asset_paths @paths ||= Dir[root_path.join("app/assets/*")] end if defined? ::Rails::Railtie class Railtie < ::Rails::Railtie initializer "task_list" do |app| TaskList.asset_paths.each do |path| app.config.assets.paths << path end end end end end
Version data entries
17 entries across 17 versions & 2 rubygems