Skip to content

Instantly share code, notes, and snippets.

Yaroslav Vasilkov yvasilkov

Block or report user

Report or block yvasilkov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Collection pattern
class LeadsController < ApplicationController
def index
collection = Collections::LeadsCollection.new(current_ability, current_user, params)
@leads = collection.eager_loaded.paginated.items
end
end
module Collections
class Collection
module Authorization
You can’t perform that action at this time.