Sha256: 80597d8192df531237f3aa0f56a8ac62dea9395860f4604139a6aaba4eaa530f

Contents?: true

Size: 268 Bytes

Versions: 3

Compression:

Stored size: 268 Bytes

Contents

require 'active_support/concern'

module ExistingTimestamp
  extend ActiveSupport::Concern

  class_methods do
    private

    def timestamp_attributes_for_create
      ["created"]
    end

    def timestamp_attributes_for_update
      ["modified"]
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
postfix_admin-0.3.0 lib/postfix_admin/concerns/existing_timestamp.rb
postfix_admin-0.2.1 lib/postfix_admin/concerns/existing_timestamp.rb
postfix_admin-0.2.0 lib/postfix_admin/concerns/existing_timestamp.rb