Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dependent_restrict

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependent_restrict

  • 0.2.4
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Dependent Restrict

Gem Version Build Status Coverage Status Dependency Status Code Climate

A gem for rails 2, 3 and 4 that retrofits and improves rails 4 functionality

Rails 4 offers 2 very useful dependent restrictions:

dependent: :raise_with_exception
dependent: :raise_with_error

In rails 3 it was just:

dependent: :raise # same sa raise_with_exception

In rails 2 these didn't exist, it was just

dependent: destroy

Which is available in rails 2, 3 and 4

Differences from standard rails 4

  • Error includes detailed message which shows up to 5 of the records that are dependent This is useful for users to know which dependencies must be removed before they can remove the parent record

FAQs

Package last updated on 18 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc