Please sign in to comment.
Set hash value instead of merge a single key, and use flatten! if pos…
…sible There's no need to create two extra hashes with options.merge(another_hash), with the goal of setting only one value, so lets just set it. Also refactor validates_each to use _merge_attributes, like other validates_* helpers do.
- Loading branch information...
Showing with 5 additions and 4 deletions.