Sha256: 20045fef067a491207d0b9dbb89c512e3d7ebf763613dff985fe33883a35fedb
Contents?: true
Size: 873 Bytes
Versions: 14
Compression:
Stored size: 873 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin # A form object used to update the current organization from the admin # dashboard. # class OrganizationForm < Form include TranslatableAttributes mimic :organization attribute :name, String attribute :reference_prefix, String attribute :twitter_handler, String attribute :facebook_handler, String attribute :instagram_handler, String attribute :youtube_handler, String attribute :github_handler, String attribute :default_locale, String validates :name, presence: true validates :default_locale, :reference_prefix, presence: true validates :default_locale, inclusion: { in: :available_locales } private def available_locales current_organization.available_locales end end end end
Version data entries
14 entries across 14 versions & 1 rubygems