Sha256: 8d00e965f8d2ce0bbb115baa4f6ba5640dc7af23926fd2e57b5edb1bb4dc0178

Contents?: true

Size: 351 Bytes

Versions: 4

Compression:

Stored size: 351 Bytes

Contents

class FamilyGallery::GroupsController < FamilyGallery::ResourcesController
  def show
  end

private

  def resource_params
    params.require(:group).permit(:name, :description)
  end

  helper_method :groups_of_pictures
  def groups_of_pictures
    @group.pictures.find_in_batches(batch_size: 6) do |pictures|
      yield pictures
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
family_gallery-0.0.4 app/controllers/family_gallery/groups_controller.rb
family_gallery-0.0.3 app/controllers/family_gallery/groups_controller.rb
family_gallery-0.0.2 app/controllers/family_gallery/groups_controller.rb
family_gallery-0.0.1 app/controllers/family_gallery/groups_controller.rb