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