Sha256: 63347c11f4f98d43b0370d1f7544c2608db3af76dc7991233a28084b868745ca

Contents?: true

Size: 262 Bytes

Versions: 2

Compression:

Stored size: 262 Bytes

Contents

require 'sid/class_methods'
require 'sid/instance_methods'

module Sid
  def has_sid(scoped_by)
    cattr_accessor :scoped_by
    self.scoped_by = scoped_by

    include Sid::ClassMethods
    include Sid::InstanceMethods
  end
end

ActiveRecord::Base.extend Sid

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sid-0.0.2 lib/sid.rb
sid-0.0.1 lib/sid.rb