Skip to content

Commit

Permalink
Avoid un-necessary attribute in record.
Browse files Browse the repository at this point in the history
  • Loading branch information
willawill committed Feb 9, 2014
1 parent d81c96c commit 15b8b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/record.rb
Expand Up @@ -5,7 +5,7 @@ class Record

def initialize args
args.each do |k, v|
instance_variable_set("@#{k}", v)
instance_variable_set("@#{k}", v) if ATTRIBUTES.include?(k)
end
end

Expand Down

0 comments on commit 15b8b43

Please sign in to comment.