Skip to content

Commit

Permalink
Merge pull request #131 from tamgrosser/warn
Browse files Browse the repository at this point in the history
silence unintialized variable warning
  • Loading branch information
kbrock committed Nov 8, 2016
2 parents c0465e4 + 5dee69e commit 1079590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/enum/enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def enum_accessor(*field_names)

def insert(record)
super
set_constant(record) if @enum_accessors.present?
set_constant(record) if defined?(@enum_accessors)
end

def delete_all
Expand Down

0 comments on commit 1079590

Please sign in to comment.