File: global_id.rb

package info (click to toggle)
ruby-globalid 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 316 kB
  • sloc: ruby: 1,695; makefile: 6
file content (23 lines) | stat: -rw-r--r-- 455 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require 'active_support'
require 'global_id/global_id'

autoload :SignedGlobalID, 'global_id/signed_global_id'

class GlobalID
  extend ActiveSupport::Autoload

  eager_autoload do
    autoload :Locator
    autoload :Identification
    autoload :Verifier
  end

  def self.eager_load!
    super
    require 'global_id/signed_global_id'
  end

  def self.deprecator # :nodoc:
    @deprecator ||= ActiveSupport::Deprecation.new("2.1", "GlobalID")
  end
end