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.1.0.beta3 lib/alchemy/userstamp.rb
alchemy_cms-3.1.0.beta2 lib/alchemy/userstamp.rb
alchemy_cms-3.1.0.beta1 lib/alchemy/userstamp.rb
alchemy_cms-3.0.2 lib/alchemy/userstamp.rb
alchemy_cms-3.0.1 lib/alchemy/userstamp.rb
alchemy_cms-3.0.0 lib/alchemy/userstamp.rb
alchemy_cms-3.0.0.rc8 lib/alchemy/userstamp.rb
alchemy_cms-2.9.0 lib/alchemy/userstamp.rb
alchemy_cms-3.0.0.rc7 lib/alchemy/userstamp.rb
alchemy_cms-3.0.0.rc6 lib/alchemy/userstamp.rb
alchemy_cms-3.0.0.rc5 lib/alchemy/userstamp.rb