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

finalist-readonly_fields

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

finalist-readonly_fields

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= readonly_fields

A simple rails plugin to make fields readonly. This means that it will add an error to fields when they are changed.

== Installation

./script/plugin install git://github.com/finalist/readonly_fields.git

== Usage

class Post < ActiveRecord::Base

readonly_fields :title, :on => :update

end

All the usual validation options are available. See the documentation on ActiveRecord::Validations::ClassMethods#validates_each.

== i18n

Translate it with the "readonly" key as you would normally do. See the Rails guide on internationalization for this.

Copyright (c) 2009 Iain Hecker, released under the MIT license

FAQs

Package last updated on 11 Aug 2014

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