Sha256: 31017eae7a2c98b1f32dd25f4e1d36cc7b67498e8ed0de52e807ccb01131a3c1

Contents?: true

Size: 525 Bytes

Versions: 46

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module CellsPaginateHelper
    include Kaminari::Helpers::HelperMethods
    include ActionView::Helpers::OutputSafetyHelper
    include ActionView::Helpers::TranslationHelper
    include Cell::ViewModel::Partial
    include Decidim::PaginateHelper

    def paginate(scope, options = {}, &block)
      options = options.reverse_merge(views_prefix: "../views/")
      super
    end

    def per_page
      params[:per_page] || Decidim::Paginable::OPTIONS.first
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-core-0.26.10 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.9 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.8 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.7 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.5 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.4 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.3 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.2 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.1 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.0 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.0.rc2 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.26.0.rc1 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.2 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.1 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.0 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.0.rc4 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.0.rc3 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.0.rc2 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.25.0.rc1 app/helpers/decidim/cells_paginate_helper.rb
decidim-core-0.24.3 app/helpers/decidim/cells_paginate_helper.rb