Sha256: 6ed77290e2f720b706ee031c539593e611a78cb412ef55de9488dd9fe2ad2915

Contents?: true

Size: 301 Bytes

Versions: 76

Compression:

Stored size: 301 Bytes

Contents

# frozen_string_literal: true

require 'active_support'
require 'active_model'

class LHS::Record

  module Model
    extend ActiveSupport::Concern

    def to_model
      self
    end

    def persisted?
      href.present?
    end

    included do
      extend ActiveModel::Naming
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
lhs-22.1.1.pre lib/lhs/concerns/record/model.rb
lhs-22.1.0 lib/lhs/concerns/record/model.rb
lhs-22.0.0 lib/lhs/concerns/record/model.rb
lhs-21.3.1 lib/lhs/concerns/record/model.rb
lhs-21.3.0 lib/lhs/concerns/record/model.rb
lhs-21.3.0.pre.autoauth.1 lib/lhs/concerns/record/model.rb
lhs-21.2.4 lib/lhs/concerns/record/model.rb
lhs-21.2.3 lib/lhs/concerns/record/model.rb
lhs-21.2.3.pre.preload.pre.providers.pre.too.1 lib/lhs/concerns/record/model.rb
lhs-21.2.2 lib/lhs/concerns/record/model.rb
lhs-21.2.1 lib/lhs/concerns/record/model.rb
lhs-21.2.0 lib/lhs/concerns/record/model.rb
lhs-21.1.4 lib/lhs/concerns/record/model.rb
lhs-21.1.3 lib/lhs/concerns/record/model.rb
lhs-21.1.2 lib/lhs/concerns/record/model.rb
lhs-21.1.2.pre.keyfix.2 lib/lhs/concerns/record/model.rb
lhs-21.1.2.pre.keyfix.1 lib/lhs/concerns/record/model.rb
lhs-21.1.2.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/concerns/record/model.rb
lhs-21.1.1.pre.pre.fix.pre.cant.pre.add.pre.new.pre.key.pre.during.pre.iteration.1 lib/lhs/concerns/record/model.rb
lhs-21.1.0 lib/lhs/concerns/record/model.rb