module Gorillib::Model::ActiveModelShim

Provides the minimum functionality to pass the ActiveModel lint tests

@example Usage

class Person
  include Gorillib::Model::ActiveModelShim
end

Public Instance Methods

attribute_method?(attr_name) click to toggle source
# File lib/gorillib/model/active_model_shim.rb, line 24
def attribute_method?(attr_name)
  self.class.has_field?(attr_name)
end
persisted?() click to toggle source

@return [false]

# File lib/gorillib/model/active_model_shim.rb, line 20
def persisted?
  false
end