Sha256: f94004f5c3e52f6f9c01283138512429768e5c2db629a73521f26df74c3a5e1c

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

require "active_record"
require "disallow/exceptions"
require "disallow/scopes"
require "disallow/callbacks"
require "disallow/version"

module Disallow
  module Model
    module ClassMethods
      include Disallow::Callbacks
      include Disallow::Scopes
    end

    def self.included(base)
      base.extend ClassMethods
    end
  end

  ActiveRecord::Base.include Disallow::Model
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
disallow-0.1.1 lib/disallow.rb
disallow-0.1.0 lib/disallow.rb