Sha256: 706b84f936d096e9ece35dec265892d52d3c2af3c212cbce8fd2bd15c768a415

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

require "strict_geocoder/version"
require "strict_geocoder/errors"
require "active_record"
require "geocoder/stores/active_record"
require "strict_geocoder/stores/active_record"

module StrictGeocoder
  ::ActiveRecord::Base.class_eval do
    class << self
      alias_method :_inherited_strict_geocoder, :inherited
      def inherited(child)
        child.extend Geocoder::Store::ActiveRecord::ClassMethods unless \
          child.ancestors.include? Geocoder::Store::ActiveRecord
        child.include StrictGeocoder::Store::ActiveRecord
        _inherited_strict_geocoder(child)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strict_geocoder-1.3.1 lib/strict_geocoder.rb