Sha256: 0e2f07c61fe85c835d99d747672f74a4a6e75973c66c57f3895ac5ec3cc2c280

Contents?: true

Size: 469 Bytes

Versions: 39

Compression:

Stored size: 469 Bytes

Contents

require 'rails_generator'
module Radiant
  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 Radiant::GeneratorBaseExtension }

Version data entries

39 entries across 39 versions & 4 rubygems

Version Path
radiantcms-couchrest_model-0.1.9 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.8 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.7 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.6 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.5 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.4 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.3 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.2 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1.1 lib/generators/generator_base_extension.rb
radiantcms-couchrest_model-0.1 lib/generators/generator_base_extension.rb
radiant-0.7.2 lib/generators/generator_base_extension.rb
radiant-0.9.1 lib/generators/generator_base_extension.rb
radiant-0.8.2 lib/generators/generator_base_extension.rb
radiant-0.9.0.rc2 lib/generators/generator_base_extension.rb
radiant-rc-0.9.0 lib/generators/generator_base_extension.rb
radiant-0.8.1 lib/generators/generator_base_extension.rb
radiant-0.7.0 lib/generators/generator_base_extension.rb
radiant-0.7.1 lib/generators/generator_base_extension.rb
radiant-0.8.0 lib/generators/generator_base_extension.rb