Class: Cytoplasm::SettingsController

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

Instance Method Summary collapse

Instance Method Details

#advanced ⇒ Object



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

def advanced
	
end

#colors ⇒ Object



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

def colors
	
end

#edit ⇒ Object



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

def edit
	
end

#fetch ⇒ Object



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

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

#fetch_vars ⇒ Object



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

#index ⇒ Object



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

def index
	
end

#layout ⇒ Object



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

def layout
	
end

#update ⇒ Object



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