Plugins - ActiveRecord Database Functions

StarAdd to favorites

This plugin will enable the use of built-in database functions through ActiveRecord.

Example:

>> User.new
>> user.password = ActiveRecord::Base::DBFunction.new( :password, 'secret' )
>> user.save
>> user.password
=> "428567f408994404"

Example 2:
>> class User < ActiveRecord::Base; def password=( pass ); super DBFunction( :password, pass ); end; end
>> user = User.new
>> user.password = 'secret'
>> user.save
>> user.password
=> "428567f408994404"

Mark Van Holstyn

http://www.mktec.com/oss/rails-plugins/

BSD-type

  • Currently 5.0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Misc. Enhancements

Tags

Comments

Add a comment

Search Plugins

Query syntax

Plugins by Category

Sponsors

Rails Kits: Get Code. Get Moving.

Have a comment?