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

props-activerecord

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

props-activerecord

  • 0.2.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

props-activerecord

Manage Setting Hierachies Addon for Database Support (ConfDb, Props Model, etc.)

  • home :: github.com/rubylibs/props
  • bugs :: github.com/rubylibs/props/issues
  • gem :: rubygems.org/gems/props-activerecord
  • rdoc :: rubydoc.info/gems/props-activerecord

Usage

DB - Config Database / Schema / Model

Example:

require 'props/activerecord'       # include database support

ConfDb.create    # build schema / tables (props)

Prop.create!( key: 'db.schema.version', '1.0.0' )

puts "Props:"
Prop.order( 'created_at asc' ).all.each do |prop|
  puts "  #{prop.key} / #{prop.value} | #{prop.created_at}"
end

More examples:

ConfDb.tables     # dump stats to console
ConfDb.delete!    # delete all records

License

The props-activerecord scripts are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

FAQs

Package last updated on 16 Aug 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