Sha256: 2b1d2ef0edfcb589130575a8b48cb11acc92002c18f0712be8b09db6d0797f34

Contents?: true

Size: 662 Bytes

Versions: 14

Compression:

Stored size: 662 Bytes

Contents

# frozen_string_literal: true

module Decidim
  class OAuthApplication < ::Doorkeeper::Application
    include Decidim::Traceable
    include Decidim::Loggable
    include Decidim::HasUploadValidations

    belongs_to :organization, foreign_key: "decidim_organization_id", class_name: "Decidim::Organization", inverse_of: :oauth_applications

    validates_upload :organization_logo
    mount_uploader :organization_logo, OAuthApplicationLogoUploader

    def owner
      organization
    end

    def type
      "Decidim::OAuthApplication"
    end

    def self.log_presenter_class_for(_log)
      Decidim::AdminLog::OAuthApplicationPresenter
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-core-0.24.3 app/models/decidim/oauth_application.rb
decidim-core-0.23.6 app/models/decidim/oauth_application.rb
decidim-core-0.24.2 app/models/decidim/oauth_application.rb
decidim-core-0.23.5 app/models/decidim/oauth_application.rb
decidim-core-0.24.1 app/models/decidim/oauth_application.rb
decidim-core-0.24.0 app/models/decidim/oauth_application.rb
decidim-core-0.24.0.rc2 app/models/decidim/oauth_application.rb
decidim-core-0.23.4 app/models/decidim/oauth_application.rb
decidim-core-0.24.0.rc1 app/models/decidim/oauth_application.rb
decidim-core-0.23.3 app/models/decidim/oauth_application.rb
decidim-core-0.23.2 app/models/decidim/oauth_application.rb
decidim-core-0.23.1 app/models/decidim/oauth_application.rb
decidim-core-0.23.1.rc1 app/models/decidim/oauth_application.rb
decidim-core-0.23.0 app/models/decidim/oauth_application.rb