Sha256: a7dd4247d5193e100737dfcf99859658aca9d22a3aa9c186e0a167a303157ed2

Contents?: true

Size: 314 Bytes

Versions: 7

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module WithModel
  # Extended into all ActiveRecord models created by with_model.
  module Methods
    # Since model classes not created by with_model won't have this
    # method, one should instead test `respond_to?(:with_model?)`.
    def with_model?
      true
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
with_model-2.1.7 lib/with_model/methods.rb
with_model-2.1.6 lib/with_model/methods.rb
with_model-2.1.5 lib/with_model/methods.rb
with_model-2.1.4 lib/with_model/methods.rb
with_model-2.1.3 lib/with_model/methods.rb
with_model-2.1.2 lib/with_model/methods.rb
with_model-2.1.1 lib/with_model/methods.rb