Sha256: 9b38d4848f2ddaf69cfe754f84ff2af99d9f9b05922e6e13f0d1698cb3f2656a

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

module Ahnnotate
  class ActiveRecordVersion
    class << self
      def actual
        @actual ||= Gem::Version.new(ActiveRecord::VERSION::STRING)
      end

      def five_and_up?
        actual >= five
      end

      private

      def five
        @five ||= Gem::Version.new("5")
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ahnnotate-0.5.1 lib/ahnnotate/active_record_version.rb
ahnnotate-0.5.0 lib/ahnnotate/active_record_version.rb
ahnnotate-0.4.0 lib/ahnnotate/active_record_version.rb
ahnnotate-0.3.0 lib/ahnnotate/active_record_version.rb