Skip to content

Commit

Permalink
select option label can now specify a proc.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmoriarty committed Jul 11, 2013
1 parent 1e2b835 commit 66adcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/switch_user_helper.rb
Expand Up @@ -35,7 +35,7 @@ def tag_value(user, id_name, scope)
end

def tag_label(user, name)
user.send(name)
name.respond_to?(:call) ? name.call(user) : user.send(name)
end

def available?
Expand Down

0 comments on commit 66adcf1

Please sign in to comment.