Class: Decidim::Proposals::ProposalState
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Decidim::Proposals::ProposalState
- Includes:
- HasComponent, Loggable, Traceable, TranslatableAttributes, TranslatableResource
- Defined in:
- app/models/decidim/proposals/proposal_state.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.colors ⇒ Object
34 35 36 |
# File 'app/models/decidim/proposals/proposal_state.rb', line 34 def self.colors Decidim::Proposals.proposal_states_colors end |
.log_presenter_class_for(_log) ⇒ Object
26 27 28 |
# File 'app/models/decidim/proposals/proposal_state.rb', line 26 def self.log_presenter_class_for(_log) Decidim::Proposals::AdminLog::ProposalStatePresenter end |
Instance Method Details
#css_style ⇒ Object
30 31 32 |
# File 'app/models/decidim/proposals/proposal_state.rb', line 30 def css_style "background-color: #{bg_color}; color: #{text_color}; border-color: #{text_color};" end |