Sha256: 39ef1a73592576d8e46ec24b363c0c4d3804aed0aa61c51064a7f8de0ba0d3b3

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

module Warrant
  module Lib
    module Extensions
      module ActiveRecord
        
        def self.included(extension)
          extension.class_eval do
            
            cattr_accessor :current_user
            
            def current_user
              self.class.current_user
            end
            
          end
        end
        
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gsterndale-warrant-0.2.0 lib/warrant/lib/extensions/active_record.rb
gsterndale-warrant-0.3.0 lib/warrant/lib/extensions/active_record.rb