Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow empty default attribute sets.

  • Loading branch information...
commit 8275bb2cde03146b0d1b466ddb01c984e9cd46d9 1 parent 33878fd
@jbarnette authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modelizer.rb
View
4 lib/modelizer.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.