Sha256: bbaeefcc8cb8a26c67ba5d9509f62c3a7b429578afdf8f1eb44ec0f074d632f8

Contents?: true

Size: 269 Bytes

Versions: 6

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

class DHS::Record

  module Update
    extend ActiveSupport::Concern

    included do
      class << self
        alias_method :update, :create
        alias_method :update!, :create!
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dhs-1.6.0 lib/dhs/concerns/record/update.rb
dhs-1.5.0 lib/dhs/concerns/record/update.rb
dhs-1.4.2 lib/dhs/concerns/record/update.rb
dhs-1.4.1 lib/dhs/concerns/record/update.rb
dhs-1.4.0 lib/dhs/concerns/record/update.rb
dhs-1.3.0 lib/dhs/concerns/record/update.rb