test/foo.rb in has_setting-1.0.3 vs test/foo.rb in has_setting-1.0.4
- old
+ new
@@ -3,6 +3,7 @@
has_setting(:setting_2, :type => :float)
has_setting(:with_default, :default => 'def')
has_setting(:setting_3, :type => :boolean)
has_setting(:setting_4, :type => :boolean, :default => false)
-end
\ No newline at end of file
+ has_setting(:setting_5, :type => :boolean, :default => -> { is_a?(Foo) })
+end