Sha256: bddfa9f6f4cc257783f8d7949793e349fd79e46a580d849ee5905afa8626ef44

Contents?: true

Size: 322 Bytes

Versions: 8

Compression:

Stored size: 322 Bytes

Contents

# frozen_string_literal: true

# Adds the model stamper ability to the provided user class
#
# It only adds it, if the user model is a active_record model.
#
if Alchemy.user_class < ActiveRecord::Base
  Alchemy.user_class.class_eval do
    model_stamper
    stampable stamper_class_name: Alchemy.user_class.name
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 lib/alchemy/userstamp.rb
alchemy_cms-4.6.7 lib/alchemy/userstamp.rb
alchemy_cms-5.0.9 lib/alchemy/userstamp.rb
alchemy_cms-4.6.6 lib/alchemy/userstamp.rb
alchemy_cms-5.0.8 lib/alchemy/userstamp.rb
alchemy_cms-4.6.5 lib/alchemy/userstamp.rb
alchemy_cms-4.5.1 lib/alchemy/userstamp.rb
alchemy_cms-4.4.5 lib/alchemy/userstamp.rb