Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[F] Implement backend collection management #387

Merged
merged 2 commits into from Jun 3, 2017
Merged

Conversation

zdavis
Copy link
Member

@zdavis zdavis commented Jun 3, 2017

[Completes #281]

scope :by_collection, lambda { |collection|
return all unless collection.present?
joins(:collection_resources)
.where("collection_resources.collection_id = ?", collection)

Choose a reason for hiding this comment

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

Layout/DotPosition: Place the . on the previous line, together with the method call receiver.


def create
@collection = ::Updaters::Collection.new(collection_params)
.update(@project.collections.new)

Choose a reason for hiding this comment

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

Layout/DotPosition: Place the . on the previous line, together with the method call receiver.

@zdavis
Copy link
Member Author

zdavis commented Jun 3, 2017

The lint errors above are inaccurate. We prefer leading dot position, yet Hound is for some reason not seeing that in our rubocop config file. These linting errors can be ignored.

@zdavis
Copy link
Member Author

zdavis commented Jun 3, 2017

Nice job on this, @SMaxOwok

@zdavis zdavis merged commit 828bccc into master Jun 3, 2017
@zdavis zdavis deleted the feat/backend-collections branch October 2, 2017 15:06
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.

None yet

3 participants