Skip to content

Commit

Permalink
Compare strings, not (sometimes) symbols
Browse files Browse the repository at this point in the history
It looks like Rails 4.2 retrieves stored symbols as strings.
  • Loading branch information
bquorning committed Jan 3, 2015
1 parent f8eb7e5 commit 240f49b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/arturo/special_handling.rb
Expand Up @@ -52,7 +52,7 @@ def blacklist(feature_symbol = nil, &block)
def two_arg_block(symbol, block)
return block if symbol.nil?
lambda do |feature, recipient|
feature.symbol == symbol && block.call(recipient)
feature.symbol.to_s == symbol.to_s && block.call(recipient)
end
end

Expand Down

0 comments on commit 240f49b

Please sign in to comment.