Sha256: c3202dd6aa69035d25cc90d2787efb656eee85bc25242d2c6cbb366b8c6eb3e3

Contents?: true

Size: 399 Bytes

Versions: 36

Compression:

Stored size: 399 Bytes

Contents

module FakeModelWithoutPasswordStrategy
  def fake_model_without_password_strategy
    Class.new do
      include ActiveModel::Validations

      validates_with UniquenessValidator

      def self.before_validation(*); end
      def self.before_create(*); end

      include Clearance::User
    end.new
  end
end

class UniquenessValidator < ActiveModel::Validator
  def validate(_record)
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
clearance-2.9.2 spec/support/fake_model_without_password_strategy.rb
clearance-2.9.1 spec/support/fake_model_without_password_strategy.rb
clearance-2.9.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.8.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.7.2 spec/support/fake_model_without_password_strategy.rb
clearance-2.7.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.6.2 spec/support/fake_model_without_password_strategy.rb
clearance-2.6.1 spec/support/fake_model_without_password_strategy.rb
clearance-2.6.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.5.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.4.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.3.1 spec/support/fake_model_without_password_strategy.rb
clearance-2.3.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.2.1 spec/support/fake_model_without_password_strategy.rb
clearance-2.2.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.1.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.0.0 spec/support/fake_model_without_password_strategy.rb
clearance-2.0.0.beta2 spec/support/fake_model_without_password_strategy.rb
clearance-2.0.0.beta1 spec/support/fake_model_without_password_strategy.rb
clearance-1.17.0 spec/support/fake_model_without_password_strategy.rb