ActiveRecord ã SQLObject ã£ã½ã ãèªãã ãè¨ã£ã¦ããããã¾ãã¾ã®äººããsvn headã«ã¯ãã®æ©è½å ¥ã£ã¦ãã®? å ¥ã£ã¦ãªãã¨ãã¦ãããã¾ãã¾ã®äººãæ¢ã«æ¸ãã¦ããã ãã©ãé¢ç½ãããªã®ã§èªåã§æ¸ãã¦ã¿ãã5åããç¡çã ã£ãã10åæãã£ãã ActiveRecord::Base.class_eval do class << self def inherited_with_sqlobjish(subclass) inherited_without_sqlobjish(subclass) Kernel.class_eval do define_method(subclass.name) {|*args| subclass.find(*args) } end end alias_method :inherited_without_sqlobjish, :inherited
{{#tags}}- {{label}}
{{/tags}}