Sha256: 5de178cf69ab85d6112e8438abb21623c65dc88c9e60acf6a48a3cc83135c417
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
require 'rails_generator' module Kajam module GeneratorBaseExtension def self.included(base) base.class_eval %{ alias_method_chain :existing_migrations, :extensions } end def existing_migrations_with_extensions(file_name) Dir.glob("#{destination_path(@migration_directory)}/[0-9]*_*.rb").grep(/[0-9]+_#{file_name}.rb$/) end end end Rails::Generator::Commands::Base.class_eval { include Kajam::GeneratorBaseExtension }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kajam-1.0.3.rc2 | lib/generators/generator_base_extension.rb |