Sha256: 18cb85eaa90ec252652cab3d1944fdfb96afd72ed14c10c6d737c8135d2db764

Contents?: true

Size: 195 Bytes

Versions: 3

Compression:

Stored size: 195 Bytes

Contents

# frozen_string_literal: true
class CanCanCan::Squeel::ActiveRecordDisabler
  ::CanCan::ModelAdapters::ActiveRecord4Adapter.class_eval do
    def self.for_class?(_)
      false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cancancan-squeel-0.1.4 lib/cancancan/squeel/active_record_disabler.rb
cancancan-squeel-0.1.3 lib/cancancan/squeel/active_record_disabler.rb
cancancan-squeel-0.1.2 lib/cancancan/squeel/active_record_disabler.rb