source: subversion/sites/rails_port/lib/object_finder.rb @ 17044

Last change on this file since 17044 was 8443, checked in by tomhughes, 11 years ago

Railsify relation selection (aka ripping out the f*in SQL).

File size: 119 bytes
Line 
1module ObjectFinder
2  def visible
3    find :all, :conditions => "#{proxy_reflection.table_name}.visible = 1"
4  end
5end
Note: See TracBrowser for help on using the repository browser.