search for: user_method

Displaying 3 results from an estimated 3 matches for "user_method".

2006 Dec 11
1
Index help on Polymorphic Associations
..., I''m a newbie to aaf and rails and I hope anyone can help me with this. I have the following Models: class Project < ActiveRecord::Base acts_as_authorizable acts_as_audited :except => [:created_by, :updated_by ], :user_class_name => ''AuthenticatedSystem'', :user_method => ''current_user'' acts_as_ferret :fields => {:name => {:store => :yes}, :description => {:store => :yes}, :project_notes => {:store => :yes}} has_many :notes, :as => :notable ..... def p...
2006 Sep 04
2
"include" versus "extend" - what's the difference
...cord::Base # acts_as_audited :except => :password # end # # * <tt>user_class_name</tt> - specifiy the class name of the user class. # This defaults to "User". Set to false to disable user auditing. # # * <tt>user_method</tt> - specify the method to call on <tt>:user_class_name</tt> # that returns the user that is performing the action. This defaults to # <tt>:current_user</tt>. # # == Database Schema # def acts_as_audited(options = {})...
2007 Apr 09
1
multi-way join files with types? (resend)
[ I''m still hoping for some help with this, folks... -r ] As part of the Arti (http://mephisto-ar.cfcl.com) effort, I''m looking into creating a database to store information on entities and relationships found in Ruby and Rails, as: Method M1 is defined for Class C1 in File F1. Method M1 of Class C1 is used by Method M2 in File F2. Disregarding (for the moment)