Sha256: 9104b405df9e87e210466062e3cba159a8ceae0ebab8a529c16aa2f29a3c7ef1

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 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 precompile
			if request.post?
				Cytoplasm.precompile_styles(params[:styles])
				render :text => Cytoplasm::Ajax.success()
			end
		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.3.5 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.4 app/controllers/cytoplasm/settings_controller.rb
cytoplasm-0.3.3 app/controllers/cytoplasm/settings_controller.rb