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-26.2.0 lib/lhs/concerns/record/model.rb
lhs-26.1.0 lib/lhs/concerns/record/model.rb
lhs-26.0.1 lib/lhs/concerns/record/model.rb
lhs-26.0.0 lib/lhs/concerns/record/model.rb
lhs-25.2.0 lib/lhs/concerns/record/model.rb
lhs-25.1.0 lib/lhs/concerns/record/model.rb
lhs-25.0.4 lib/lhs/concerns/record/model.rb
lhs-25.0.3 lib/lhs/concerns/record/model.rb
lhs-25.0.2 lib/lhs/concerns/record/model.rb
lhs-25.0.1 lib/lhs/concerns/record/model.rb
lhs-25.0.0 lib/lhs/concerns/record/model.rb
lhs-24.1.2 lib/lhs/concerns/record/model.rb
lhs-24.1.1 lib/lhs/concerns/record/model.rb
lhs-24.1.0 lib/lhs/concerns/record/model.rb
lhs-24.1.0.pre.2 lib/lhs/concerns/record/model.rb
lhs-24.1.0.pre.1 lib/lhs/concerns/record/model.rb
lhs-24.0.0 lib/lhs/concerns/record/model.rb
lhs-23.0.2 lib/lhs/concerns/record/model.rb
lhs-23.0.1 lib/lhs/concerns/record/model.rb
lhs-23.0.0 lib/lhs/concerns/record/model.rb