Sha256: da678b80cf9016f8e83de0bb987bd6221b3a77c0e4f1cdbab5f6495309ca2a6f
Contents?: true
Size: 848 Bytes
Versions: 16
Compression:
Stored size: 848 Bytes
Contents
##TODO #$LOAD_PATH.unshift("#{Dir.pwd}/lib/ns_service_pack/lib") require 'ns_service_pack/code_hash.rb' require 'ns_service_pack/result_packer.rb' require 'ns_service_pack/field_mapping.rb' require 'ns_service_pack/application_controller_module.rb' #TODO WHY FIXME #if defined?(ActionController::Base) #ActionController::Base.include(ApplicationControllerModule) # ActionController::Base.send(:include, ApplicationControllerModule) #end if defined?(ActiveRecord::Base) ActiveRecord::Base.send(:include, FieldMapping) end GlobalConstants = { :genders => CodeHash.new('男'=>0, '女'=>1, '保密'=>2), :trues => CodeHash.new('是'=>true, '否'=>false) } #Genders = CodeHash.new('男'=>0, '女'=>1, '保密'=>2) #Trues = CodeHash.new('是'=>true, '否'=>false) puts "============ns service pack has installed in your application..."
Version data entries
16 entries across 16 versions & 1 rubygems