0
我有此宝石:https://github.com/RLovelett/feedzirra-rails 我希望能够把它列入喜欢:gem "feedzirra-rails", :git => "git://github.com/RLovelett/feedzirra-rails.git", :branch => "feedzirra-rails"
Rails 3的宝石包括
但是,Rails的似乎并没有被自动延长的ActiveRecord :: Base的。但是,如果我在使用acts_as_feed
的模型中调用require "feedzirra_rails"
,一切都很好。
基本上,我不想要调用require。我只想要acts_as_feed
自动提供给所有模型。
对此提出建议?