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

splattael-activerecord_base_without_table

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

splattael-activerecord_base_without_table

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
3
Created
Source

= ActiveRecordBaseWithoutTable

Get the power of ActiveRecord models, including validation, without having a table in the database. This plugin now works with Rails 2.2.2.

== Installation

=== Gem

Rails::Initializer.run do |config| # ... config.gem 'splattael-activerecord_base_without_table', :lib => 'activerecord_base_without_table', :source => 'http://gems.github.com'

# ...

end

=== Rails plugin

script/plugin install git://github.com/splattael/activerecord_base_without_table.git

== Usage

class Contact < ActiveRecord::BaseWithoutTable column :name, :string column :email_address, :string column :message, :text

validates_presence_of :name, :email_address, :string

end

This model can be used just like a regular model based on a table, except it will never be saved to the database.

== Bugs & more

Please fork this repository send me push requests :)

== Authors:

  • Jonathan Viney (initial version)
  • Peter Abrahamsen (serialization & inheritance)
  • Peter Suschlik (patch for Rails 2.2.2)

== Changelog

See CHANGELOG file.


= Old Infos

== ActiveRecordBaseWithoutTable

If you find this plugin useful, please consider a donation to show your support!

http://www.paypal.com/cgi-bin/webscr?cmd=_send-money
Email address: jonathan.viney@gmail.com

== Instructions

For edge Rails r7315 or above use http://svn.viney.net.nz/things/branches/active_record_base_without_table

Get the power of ActiveRecord models, including validation, without having a table in the database.

class Contact < ActiveRecord::BaseWithoutTable
  column :name, :string
  column :email_address, :string
  column :message, :text
  
  validates_presence_of :name, :email_address, :string
end

This model can be used just like a regular model based on a table, except it will never be saved to the database.

There is a good blog post available on the plugin: http://www.kangarooit.com/developer_blog/2007/02/email-form-validation-in-ruby-on-rails.php

Any bugs, questions, comments please feel free to email me: jonathan.viney@gmail.com

FAQs

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