Skip to content

Commit

Permalink
fallback to implicit converter if there's no explicit converter defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jhass committed Oct 2, 2014
1 parent 6da19ee commit e33902f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/configurate/proxy.rb
Expand Up @@ -36,7 +36,9 @@ def !
:to_ary => :to_a
}.each do |method, converter|
define_method method do
target.public_send converter
value = target
return value.public_send converter if value.respond_to? converter
value.public_send method
end
end

Expand Down

0 comments on commit e33902f

Please sign in to comment.