class User << ActiveRecord::Base
def self.active( options={} )
with_options :conditions => 'users.active > 0' do |this|
this.find( :all, options )
end
end
end
|
class User << ActiveRecord::Base
def self.active( options={} )
with_options :conditions => 'users.active > 0' do |this|
this.find( :all, options )
end
end
end
|