Sha256: 695e8abfc7637de10adc22a83a36c39c359cbe7244873cbf92648157d9fc3c47

Contents?: true

Size: 427 Bytes

Versions: 5

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require "pakyow/support/extension"

module Pakyow
  module Behavior
    module Initializers
      extend Support::Extension

      apply_extension do
        after "make" do
          Dir.glob(File.join(config.root, "config/initializers/application/**/*.rb")).each do |initializer|
            class_eval(File.read(initializer), initializer)
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pakyow-core-1.0.0.rc5 lib/pakyow/behavior/initializers.rb
pakyow-core-1.0.0.rc4 lib/pakyow/behavior/initializers.rb
pakyow-core-1.0.0.rc3 lib/pakyow/behavior/initializers.rb
pakyow-core-1.0.0.rc2 lib/pakyow/behavior/initializers.rb
pakyow-core-1.0.0.rc1 lib/pakyow/behavior/initializers.rb