Sha256: 1c8fa6e5961b051a325e044f0a835a0cd90a6d821f599ceaf3530cf0d695e616

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

case ActiveRecord::VERSION::MAJOR
when 3, 4
#  ActiveRecord::Relation.send :include, Squeel::Nodes::Aliasing
#  require 'squeel/adapters/active_record/join_dependency_extensions'
#  require 'squeel/adapters/active_record/base_extensions'

  adapter_directory = "#{ActiveRecord::VERSION::MAJOR}.#{ActiveRecord::VERSION::MINOR}"
  Dir[File.expand_path("../active_record/#{adapter_directory}/*.rb", __FILE__)].each do |f|
    require f
  end
else
  raise NotImplementedError, "DeclarativeAuthorization does not support Active Record version #{ActiveRecord::VERSION::STRING}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zeiv-declarative_authorization-1.0.0.pre lib/declarative_authorization/adapters/active_record.rb