Sha256: 9a2caef2e6c900f05aa2bc59f798717729ee7f64414609aed4cf1cdd8a8e7792
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
Object.class_eval { remove_const :Truthteller if const_defined?(:Truthteller) } class Truthteller include ActiveModel::Validations attr_accessor :i_am_not_a_crook, :the_sky_is_blue, :puppies_are_cute def initialize(true_or_false) @i_am_not_a_crook, @the_sky_is_blue, @puppies_are_cute = true_or_false, true_or_false, true_or_false end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
validates_truthiness-0.1.2 | spec/model.rb |
validates_truthiness-0.1.1 | spec/model.rb |
validates_truthiness-0.1.0 | spec/model.rb |