cirandas.net

ref: master

plugins/organization_ratings/lib/organization_ratings_block.rb


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
class OrganizationRatingsBlock < Block
  include RatingsHelper

  def self.description
    _('Organization Ratings')
  end

  def help
    _('This block displays the organization ratings.')
  end

  def limit_number_of_ratings
    env_organization_ratings_config.per_page
  end

  def ratings_on_initial_page
    env_organization_ratings_config.ratings_on_initial_page
  end

  def cacheable?
    false
  end
end