Sha256: bc57a3ec2a7dbd164546407f98e5253191819ddd7040a4a25b022a67a90a892c
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
module Optimacms class Admin::AppdataController < Admin::AdminBaseController def lib_service Optimacms::Appdata::Service end def index @list = Optimacms::Appdata::Settings.list_content(Rails.env) #@repo_data = Optimacms::Appdata::Settings.appdata_remote_repo(Rails.env) #@dir_local_repo = Optimacms::Appdata::Settings.appdata_repo_path(Rails.env) end def save @res = Optimacms::Appdata::Service.save(Rails.env, params[:content]) respond_to do |format| format.html { } format.json{ render :json=>@res} end end def get @res = Optimacms::Appdata::Service.update(Rails.env, params[:content]) respond_to do |format| format.html { } format.json{ render :json=>@res} end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optimacms-0.4.3 | app/controllers/optimacms/admin/appdata_controller.rb |
optimacms-0.4.2 | app/controllers/optimacms/admin/appdata_controller.rb |