阅读背景:

使用基类和基本模块重构ActiveRecord模型

来源:互联网 

Class A and B are identical:

A类和B类相同:

class A < ActiveRecord::Base
 def foo
  puts "foo"
 end
end

class B < ActiveRecord::Base
 def foo
  puts "foo"
 end
end
class



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: