Sha256: 341bed9d8ccfcc8ee24cfaaa55385c1a2c70edfca66014b8f7695f5aed4bcce5

Contents?: true

Size: 459 Bytes

Versions: 27

Compression:

Stored size: 459 Bytes

Contents

# frozen_string_literal: true

module Shimmer
  class Railtie < Rails::Railtie
    rake_tasks do
      path = File.expand_path(__dir__)
      Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f }
    end
  end
end

ActiveSupport.on_load(:action_view) do
  Dir.glob("#{File.expand_path(__dir__)}/helpers/**/*.rb").each do |file|
    load file
    name = file.split("/").last.delete_suffix(".rb").classify
    include "Shimmer::#{name}".constantize
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
shimmer-0.0.41 lib/shimmer/railtie.rb
shimmer-0.0.40 lib/shimmer/railtie.rb
shimmer-0.0.39 lib/shimmer/railtie.rb
shimmer-0.0.38 lib/shimmer/railtie.rb
shimmer-0.0.37 lib/shimmer/railtie.rb
shimmer-0.0.36 lib/shimmer/railtie.rb
shimmer-0.0.35 lib/shimmer/railtie.rb
shimmer-0.0.34 lib/shimmer/railtie.rb
shimmer-0.0.33 lib/shimmer/railtie.rb
shimmer-0.0.32 lib/shimmer/railtie.rb
shimmer-0.0.31 lib/shimmer/railtie.rb
shimmer-0.0.30 lib/shimmer/railtie.rb
shimmer-0.0.29 lib/shimmer/railtie.rb
shimmer-0.0.28 lib/shimmer/railtie.rb
shimmer-0.0.27 lib/shimmer/railtie.rb
shimmer-0.0.26 lib/shimmer/railtie.rb
shimmer-0.0.25 lib/shimmer/railtie.rb
shimmer-0.0.24 lib/shimmer/railtie.rb
shimmer-0.0.23 lib/shimmer/railtie.rb
shimmer-0.0.22 lib/shimmer/railtie.rb