@attr.merge?

Hi,

What does the @attr.merge in something like:

it “should require a password” do
User.new(@attr.merge(:password => “”, :password_confirmation =>
“”)).
should_not be_valid
end

do?

On Mar 7, 4:31pm, Gaba L. [email protected] wrote:

Hi,

What does the @attr.merge in something like:

it merges the hash @attr with the hash passed as its argument.

Fred

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs