Sha256: fc3eca21ea155ec624f32d3e49898946cb0c540f4b735ed2155334b7134f4541

Contents?: true

Size: 268 Bytes

Versions: 6

Compression:

Stored size: 268 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.2.0 lib/dhs/concerns/record/update.rb
dhs-1.1.0 lib/dhs/concerns/record/update.rb
dhs-1.0.3 lib/dhs/concerns/record/update.rb
dhs-1.0.2 lib/dhs/concerns/record/update.rb
dhs-1.0.1 lib/dhs/concerns/record/update.rb
dhs-1.0.0 lib/dhs/concerns/record/update.rb