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

Version Path
deckar01-task_list-2.3.4 lib/task_list/railtie.rb
deckar01-task_list-2.3.3 lib/task_list/railtie.rb
deckar01-task_list-3.0.alpha2 lib/task_list/railtie.rb
deckar01-task_list-3.0.alpha1 lib/task_list/railtie.rb
deckar01-task_list-2.3.2 lib/task_list/railtie.rb
deckar01-task_list-2.3.1 lib/task_list/railtie.rb
deckar01-task_list-2.3.0 lib/task_list/railtie.rb
deckar01-task_list-2.2.1 lib/task_list/railtie.rb
deckar01-task_list-2.2.0 lib/task_list/railtie.rb
deckar01-task_list-2.1.0 lib/task_list/railtie.rb
deckar01-task_list-2.0.1 lib/task_list/railtie.rb
deckar01-task_list-2.0.0 lib/task_list/railtie.rb
deckar01-task_list-1.0.6 lib/task_list/railtie.rb
deckar01-task_list-1.0.5 lib/task_list/railtie.rb
deckar01-task_list-1.0.4 lib/task_list/railtie.rb
deckar01-task_list-1.0.3 lib/task_list/railtie.rb
task_list-1.0.2 lib/task_list/railtie.rb