Class: Cytoplasm::SettingsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/cytoplasm/settings_controller.rb

Instance Method Summary collapse

Instance Method Details

#advancedObject



20
21
22
# File 'app/controllers/cytoplasm/settings_controller.rb', line 20

def advanced
	
end

#colorsObject



16
17
18
# File 'app/controllers/cytoplasm/settings_controller.rb', line 16

def colors
	
end

#editObject



8
9
10
# File 'app/controllers/cytoplasm/settings_controller.rb', line 8

def edit
	
end

#fetchObject



35
36
37
# File 'app/controllers/cytoplasm/settings_controller.rb', line 35

def fetch
	render :text => Cytoplasm::Ajax.success({"vars" => fetch_vars()})
end

#fetch_varsObject



30
31
32
33
# File 'app/controllers/cytoplasm/settings_controller.rb', line 30

def fetch_vars
	Cytoplasm.load_vars_from("config/cytoplasm-config.yml")
	return Cytoplasm.vars()
end

#indexObject



4
5
6
# File 'app/controllers/cytoplasm/settings_controller.rb', line 4

def index
	
end

#layoutObject



12
13
14
# File 'app/controllers/cytoplasm/settings_controller.rb', line 12

def layout
	
end

#updateObject



24
25
26
27
28
# File 'app/controllers/cytoplasm/settings_controller.rb', line 24

def update
	conf = params.except(":action",":controller")
	Cytoplasm.save_config(conf)
	redirect_to cytoplasm_settings_url
end