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

Version Path
ns_service_pack-0.0.16 lib/ns_service_pack.rb~
ns_service_pack-0.0.15 lib/ns_service_pack.rb~
ns_service_pack-0.0.14 lib/ns_service_pack.rb~
ns_service_pack-0.0.13 lib/ns_service_pack.rb~
ns_service_pack-0.0.12 lib/ns_service_pack.rb~
ns_service_pack-0.0.11 lib/ns_service_pack.rb~
ns_service_pack-0.0.10 lib/ns_service_pack.rb~
ns_service_pack-0.0.9 lib/ns_service_pack.rb~
ns_service_pack-0.0.8 lib/ns_service_pack.rb~
ns_service_pack-0.0.7 lib/ns_service_pack.rb~
ns_service_pack-0.0.6 lib/ns_service_pack.rb~
ns_service_pack-0.0.5 lib/ns_service_pack.rb~
ns_service_pack-0.0.4 lib/ns_service_pack.rb~
ns_service_pack-0.0.3 lib/ns_service_pack.rb~
ns_service_pack-0.0.2 lib/ns_service_pack.rb~
ns_service_pack-0.0.1 lib/ns_service_pack.rb~