Sha256: 3aad336aae33df718b62e8eed396bdbb5418809abfbf76136bf204533d8f8d4d

Contents?: true

Size: 549 Bytes

Versions: 15

Compression:

Stored size: 549 Bytes

Contents

module Cytoplasm
	class SettingsController < ApplicationController
		
		def index
			
		end
		
		def edit
			
		end
		
		def layout
			
		end
		
		def colors
			
		end
		
		def advanced
			
		end
		
		def update
			conf = params.except(":action",":controller")
			Cytoplasm.save_config(conf)
			redirect_to cytoplasm_settings_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

15 entries across 15 versions & 1 rubygems

Version Path
cytoplasm-0.4.5 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.4.4 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.4.3 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.4.2 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.4.1 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.4.0 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.9 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.8 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.7 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.6 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.1 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.0 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.2.9 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.2.8 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.2.7 app/controllers/cytoplasm/settings_controller.rb