Please sign in to comment.
Simplify handling of defaults/options in button_tag
There's no need to rely on Active Support's Hash#reverse_merge for simple cases with default values, since we can just merge from the default rather than reverse merge from the options. This also avoids the creation of one extra hash object by moving to a Hash#merge! call.
- Loading branch information...
Showing with 1 addition and 4 deletions.