Sha256: fe6a2815f9baea63f4b8f7c108e488ad208884b00beaf180b6246422407d279b

Contents?: true

Size: 614 Bytes

Versions: 2

Compression:

Stored size: 614 Bytes

Contents

ActiveScaffold.bridge "DependentProtect" do
  install do
    # check to see if the old bridge was installed.  If so, warn them
    # we can detect this by checking to see if the bridge was installed before calling this code
    if ActiveRecord::Base.instance_methods.include?("authorized_for_delete?")
      raise RuntimeError, "We've detected that you have active_scaffold_dependent_protect installed.  This plugin has been moved to core.  Please remove active_scaffold_dependent_protect to prevent any conflicts"
    end
    require File.join(File.dirname(__FILE__), "lib/dependent_protect_bridge.rb")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
brisk-bills-0.8.2 vendor/plugins/active_scaffold/lib/bridges/dependent_protect/bridge.rb
brisk-bills-0.8.1 vendor/plugins/active_scaffold/lib/bridges/dependent_protect/bridge.rb