Sha256: 59ae8d5c692ffe1110e078ced9d7d4926c7f04b5694889a65efad83636bf8dfe
Contents?: true
Size: 586 Bytes
Versions: 2
Compression:
Stored size: 586 Bytes
Contents
class ExpressTranslate::Ajax::PackagesController < ActionController::Base require 'redis' require 'json' require 'csv' include ExpressTranslate def package_add load_content_package(Package.add(params)) end def package_update load_content_package(Package.update(params)) end def package_delete load_content_package(Package.delete(params[:id])) end private def load_content_package(check) if check['success'] @packages = Package.all render :action => :package_update else render :json => check end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
express_translate-1.0 | app/controllers/express_translate/ajax/packages_controller.rb |
express_translate-1.0.0.0 | app/controllers/express_translate/ajax/packages_controller.rb |