Displaying 1 result from an estimated 1 matches for "acts_as_noteable".
2006 Jan 27
4
acts_as_whatever
Hi there,
I love the acts_as_* family that rails uses. I''ve also found I can
create something similar by dropping the following code into my
activerecord classes:
class MyClass < ActiveRecord::Base
class << self
alias_method :count_with_unapproved, :count
end
def self.find(*args)
options = extract_options_from_args!(args)
if options[:conditions].nil?
options[:conditions] =