Sha256: 5d2dd0b621efc26595c06723231ab65b6a5a9cd4d3c2f828fb5e35bff8a6b7d1
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
#coding: utf-8 #导入项目中使用的CodeHashes GlobalConst.load_app_code_hashes! #对rails应用的扩展 if defined?(Rails) #TODO 为什么不能像ActiveRecord::Base一样include,到底什么道理呢??? class ApplicationController < ActionController::Base include ApplicationControllerModule end if defined?(ActiveRecord::Base) ActiveRecord::Base.send(:include, FieldMapping) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ns_service_pack-0.0.4 | config/initializers/ns_service_pack.rb |
ns_service_pack-0.0.3 | config/initializers/ns_service_pack.rb |