lib/kosher/shipping.rb in kosher-0.14.2 vs lib/kosher/shipping.rb in kosher-0.15.0
- old
+ new
@@ -5,8 +5,11 @@
key :available, Boolean
validates_presence_of :available
- alias available? available
+ def available?
+ validate!
+ available
+ end
end
end