Sha256: 14995b3c371dfd49c6dc26607dfc4e3d218e2362e415a9ee73a86d2f612fb562

Contents?: true

Size: 397 Bytes

Versions: 5

Compression:

Stored size: 397 Bytes

Contents

if Object.const_defined?("ActiveRecord")
  unless  Object.const_defined?("Stonean") && Stonean.const_defined?("ClassyInheritance")
    begin
      require "classy-inheritance"
    rescue LoadError
      puts <<-MSG 
        You need to install classy-inheritance to use the provided models.
        With gems, use `gem install classy-inheritance'
      MSG
      exit
    end
  end
end           

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lockdown-0.6.0 lib/lockdown/classy-inheritance.rb
lockdown-0.6.1 lib/lockdown/classy-inheritance.rb
lockdown-0.7.0 lib/lockdown/classy-inheritance.rb
lockdown-0.6.2 lib/lockdown/classy-inheritance.rb
lockdown-0.6.3 lib/lockdown/classy-inheritance.rb