æ¦è¦ ã»named_scopeã¯ä¾¿å©ã ãã©ãå¦ç対象ãè¤æ°ã®ã¢ãã«ã«åã¶å ´åãéè¤ããã³ã¼ãã«ãªããã¡ => proxy_options ã使ãã¨named_scopeã®æ¡ä»¶é¨åãããã·ã¥ã§åããã¨ãã§ããã®ã§ãnamed_scopeãåå©ç¨ã§ãããï¼ >> User.login('cohakim').proxy_options.merge(:include => :user) => {:include=>:user, :conditions=>["users.login like ?", "cohakim%"]} ã³ã¼ã app/models/user.rb class User < ActiveRecord::Base named_scope :login, lambda{|login| login.blank? ? {} : {:conditions => ['users.login
{{#tags}}- {{label}}
{{/tags}}