Sha256: 7bcb48f84c8aa172ac4734c6e2b357c668bd76a9db70470eae2ec1364903e2e8
Contents?: true
Size: 876 Bytes
Versions: 5
Compression:
Stored size: 876 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
5 entries across 5 versions & 1 rubygems