Class: Decidim::Organization
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Organization
- 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
- #homepage_big_url ⇒ Object
-
#top_scopes ⇒ Object
Returns top level scopes for this organization.
Instance Method Details
#homepage_big_url ⇒ Object
34 35 36 |
# File 'app/models/decidim/organization.rb', line 34 def homepage_big_url homepage_image.big.url end |
#top_scopes ⇒ Object
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 |