Created
July 16, 2010 22:19
-
-
Save tizoc/479002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/bureaucrat/fields.rb b/lib/bureaucrat/fields.rb | |
index fcf8ff0..983a83c 100644 | |
--- a/lib/bureaucrat/fields.rb | |
+++ b/lib/bureaucrat/fields.rb | |
@@ -131,8 +131,9 @@ module Bureaucrat | |
def initialize_copy(original) | |
super(original) | |
- @initial = original.initial ? original.initial.dup : original.initial | |
- @label = original.label ? original.label.dup : original.label | |
+ @initial = original.initial && original.initial.dup | |
+ @label = original.label && original.label.dup | |
+ @widget = original.widget && original.widget.dup | |
@error_messages = original.error_messages.dup | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment