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

recliner

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

recliner

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Recliner is a Ruby ORM for interfacing with CouchDB (http://couchdb.apache.org/) databases.

It is designed to be familiar to users of ActiveRecord, but diverges where necessary to fit with the CouchDB document/view paradigm.

Example

class Article < Recliner::Document property :title, String, :default => 'Untitled' property :body, String property :published_at, DateTime property :approved, Boolean, :default => false timestamps!

attr_protected :published_at, :approved

belongs_to :author, :class_name => 'User'

default_order :published_at

view :by_title, :order => :title view :approved, :conditions => { :approved => true }

validates_presence_of :title, :body

before_save :set_published_at end

article1 = Article.create(:title => "Recliner wins multiple awards!",   :body => "Actually, it hasn't happened yet",   :approved => true) article2 = Article.create(:title => "Recliner 1.0 released",   :body => "Yes, it's true!",   :approved => false)

FAQs

Package last updated on 30 Sep 2009

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