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
geocoder-1.8.3 lib/generators/geocoder/migration_version.rb
geocoder-1.8.2 lib/generators/geocoder/migration_version.rb
geocoder-1.8.1 lib/generators/geocoder/migration_version.rb
geocoder-1.8.0 lib/generators/geocoder/migration_version.rb
geocoder-1.7.5 lib/generators/geocoder/migration_version.rb
geocoder-1.7.4 lib/generators/geocoder/migration_version.rb
geocoder-1.7.3 lib/generators/geocoder/migration_version.rb
geocoder-1.7.2 lib/generators/geocoder/migration_version.rb
geocoder-1.7.1 lib/generators/geocoder/migration_version.rb
geocoder-1.7.0 lib/generators/geocoder/migration_version.rb
geocoder-1.6.7 lib/generators/geocoder/migration_version.rb
geocoder-1.6.6 lib/generators/geocoder/migration_version.rb
geocoder-1.6.5 lib/generators/geocoder/migration_version.rb
geocoder-1.6.4 lib/generators/geocoder/migration_version.rb
geocoder-1.6.3 lib/generators/geocoder/migration_version.rb
geocoder-1.6.2 lib/generators/geocoder/migration_version.rb
geocoder-1.6.1 lib/generators/geocoder/migration_version.rb
geocoder-1.6.0 lib/generators/geocoder/migration_version.rb
geocoder-1.5.2 lib/generators/geocoder/migration_version.rb
really-broken-geocoder-2.0.0 lib/generators/geocoder/migration_version.rb