Sha256: 0d527f60044e035d82950b2f832dd9e77674ed5f2a0af3d9f9b5f56f6c44e122

Contents?: true

Size: 390 Bytes

Versions: 23

Compression:

Stored size: 390 Bytes

Contents

module Doorkeeper
  module Models
    module Scopes
      def self.included(base)
        base.class_eval do
          define_method :scopes do
            Doorkeeper::OAuth::Scopes.from_string(self[:scopes])
          end

          define_method :scopes_string do
            Doorkeeper::OAuth::Scopes.from_string(self[:scopes]).to_s
          end
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
doorkeeper-1.3.1 lib/doorkeeper/models/scopes.rb
doorkeeper-1.3.0 lib/doorkeeper/models/scopes.rb
doorkeeper-1.2.0 lib/doorkeeper/models/scopes.rb
doorkeeper-1.1.0 lib/doorkeeper/models/scopes.rb
doorkeeper-1.0.0 lib/doorkeeper/models/scopes.rb
doorkeeper-1.0.0.rc2 lib/doorkeeper/models/scopes.rb
doorkeeper-1.0.0.rc1 lib/doorkeeper/models/scopes.rb
doorkeeper-0.7.4 lib/doorkeeper/models/scopes.rb
doorkeeper-0.7.3 lib/doorkeeper/models/scopes.rb
doorkeeper-0.7.2 lib/doorkeeper/models/scopes.rb
doorkeeper-0.7.1 lib/doorkeeper/models/scopes.rb
doorkeeper-0.7.0 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.7 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.6 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.5 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.4 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.3 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.2 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.1 lib/doorkeeper/models/scopes.rb
doorkeeper-0.6.0 lib/doorkeeper/models/scopes.rb