Sha256: 86a9ac1fcec172079c5a362965608c60d97c17934140297ee3c7da8f0ef9502c

Contents?: true

Size: 509 Bytes

Versions: 3

Compression:

Stored size: 509 Bytes

Contents

module Cytoplasm
	class SettingsController < ApplicationController
		
		def index
			
		end
		
		def edit
			
		end
		
		def layout
			
		end
		
		def colors
			
		end
		
		def advanced
			
		end
		
		def update
			Cytoplasm.save_config(params)
			redirect_to cytoplasm_advanced_config_url
		end
		
		def fetch_vars
			Cytoplasm.load_vars_from("config/cytoplasm-config.yml")
			return Cytoplasm.vars()
		end
		
		def fetch
			render :text => Cytoplasm::Ajax.success({"vars" => fetch_vars()})
		end
		
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cytoplasm-0.2.6 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.2.5 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.2.4 app/controllers/cytoplasm/settings_controller.rb