Permalink
Browse files

Allow empty default attribute sets.

  • Loading branch information...
1 parent 33878fd commit 8275bb2cde03146b0d1b466ddb01c984e9cd46d9 @jbarnette committed Jan 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modelizer.rb
View
@@ -6,7 +6,7 @@
module Modelizer
# Duh.
- VERSION = "1.3.1"
+ VERSION = "1.3.2"
include Modelizer::Assertions
@@ -37,7 +37,7 @@ def valid_model_template_attributes_without klass, excluded
module ClassMethods
def model_template_for klass, defaults = {}, &block
- if defaults.empty? && !block
+ if defaults.nil? && !block
raise ArgumentError, "default attributes or lazy block required"
end

0 comments on commit 8275bb2

Please sign in to comment.