Sha256: c1bf13bfe0128d0ec61f33773e84069710cfc4c48ad440ede45757c3522071ca

Contents?: true

Size: 291 Bytes

Versions: 51

Compression:

Stored size: 291 Bytes

Contents

# 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

51 entries across 51 versions & 2 rubygems

Version Path
alchemy_cms-3.6.7 lib/alchemy/userstamp.rb
alchemy_cms-3.6.6 lib/alchemy/userstamp.rb
alchemy_cms-3.6.5 lib/alchemy/userstamp.rb
alchemy_cms-3.6.4 lib/alchemy/userstamp.rb
alchemy_cms-3.6.3 lib/alchemy/userstamp.rb
alchemy_cms-3.6.2 lib/alchemy/userstamp.rb
alchemy_cms-3.6.1 lib/alchemy/userstamp.rb
alchemy_cms-4.0.0.beta lib/alchemy/userstamp.rb
alchemy_cms-3.6.0 lib/alchemy/userstamp.rb
alchemy_cms-3.5.0 lib/alchemy/userstamp.rb
alchemy_cms-3.4.2 lib/alchemy/userstamp.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/userstamp.rb
alchemy_cms-3.5.0.rc1 lib/alchemy/userstamp.rb
alchemy_cms-3.4.1 lib/alchemy/userstamp.rb
alchemy_cms-3.3.3 lib/alchemy/userstamp.rb
alchemy_cms-3.3.2 lib/alchemy/userstamp.rb
alchemy_cms-3.4.0 lib/alchemy/userstamp.rb
alchemy_cms-3.4.0.rc1 lib/alchemy/userstamp.rb
alchemy_cms-3.3.1 lib/alchemy/userstamp.rb
alchemy_cms-3.3.0 lib/alchemy/userstamp.rb