Module: Admin::SettingsHelper

Defined in:
app/helpers/admin/settings_helper.rb

Instance Method Summary collapse

Instance Method Details

#render_node(key, object, options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
# File 'app/helpers/admin/settings_helper.rb', line 2

def render_node(key, object, options = {})
  @depth ||= 0
  
  if object.is_a?(Radiant::Config)
    render :partial => 'setting', :locals => { :key => key, :setting => object, :hash => nil }
  else
    render :partial => 'setting', :locals => { :key => key, :setting => nil, :hash => object }
  end
end