Class: Decidim::Organization

Inherits:
ApplicationRecord show all
Defined in:
app/models/decidim/organization.rb

Overview

Organizations are one of the main models of Decidim. In a single Decidim installation we can find many organizations and each of them can start their own participatory processes.

Constant Summary collapse

SOCIAL_HANDLERS =
[:twitter, :facebook, :instagram, :youtube, :github].freeze

Instance Method Summary collapse

Instance Method Details

#homepage_big_urlObject



34
35
36
# File 'app/models/decidim/organization.rb', line 34

def homepage_big_url
  homepage_image.big.url
end

#top_scopesObject

Returns top level scopes for this organization.

Returns an ActiveRecord::Relation.



30
31
32
# File 'app/models/decidim/organization.rb', line 30

def top_scopes
  @top_scopes ||= scopes.top_level
end