Yes, why not?
class MyModel < ActiveRecord::Base def self.some_calculations(id) find(:all, :conditions => ['id != ?', id], :order => 'rand()') end end
MyModel.some_calculations(66)
OR drop the self and have an instance method....
class MyModel < ActiveRecord::Base def some_calculations find(:all, :conditions => ['id != ?', id], :order => 'rand()') end end