Strip Attributes plugin
Plugin details
Documentation
Install the plugin:
ruby script/plugin install http://stripattributes.rubyforge.org/svn/tags/strip_attributes/
class DrunkPokerPlayer < ActiveRecord::Base strip_attributes! end class SoberPokerPlayer < ActiveRecord::Base strip_attributes! :except => :boxers end class ConservativePokerPlayer < ActiveRecord::Base strip_attributes! :only => [:shoe, :sock, :glove] end
If you want to use this outside of Rails, extend StripAttributes in your ActiveRecord model after putting strip_attributes in your $LOAD_PATH:
require 'strip_attributes' class SomeModel < ActiveRecord::Base extend StripAttributes strip_attributes! end
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: Guest, about 1 year ago

