Skip to content

merge feature in progress - #32

Open
rmtolmach wants to merge 17 commits into
Ada-C4:masterfrom
rmtolmach:master
Open

merge feature in progress#32
rmtolmach wants to merge 17 commits into
Ada-C4:masterfrom
rmtolmach:master

Conversation

@rmtolmach

Copy link
Copy Markdown

I wrote cucumber tests that are not all passing at the moment. Currently, admins can enter the id of a article they want to merge and it will tell you it was merged and delete the article. BUT, it does not actually merge them.

article2 = Article.find(params[:merge_me])
# add body from article2 to the body of article1
@article1.body = @article1.body + article2.body
# delete article2

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick - I'd keep your comments indented the same way your code is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants