Sha256: 934a2a9eeb37603023499cdaadcbeca0f799388e160f08ca49ee6f4537be0fdd

Contents?: true

Size: 281 Bytes

Versions: 28

Compression:

Stored size: 281 Bytes

Contents

module Geocoder
  module Generators
    module MigrationVersion
      def rails_5?
        Rails::VERSION::MAJOR == 5
      end

      def migration_version
        if rails_5?
          "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
really-broken-geocoder-1.5.1 lib/generators/geocoder/migration_version.rb
geocoder-1.5.1 lib/generators/geocoder/migration_version.rb
geocoder-1.5.0 lib/generators/geocoder/migration_version.rb
geocoder-1.4.9 lib/generators/geocoder/migration_version.rb
geocoder-1.4.8 lib/generators/geocoder/migration_version.rb
geocoder-1.4.7 lib/generators/geocoder/migration_version.rb
geocoder-1.4.6 lib/generators/geocoder/migration_version.rb
geocoder-1.4.5 lib/generators/geocoder/migration_version.rb