Module: Admin::ZonesHelper

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

Instance Method Summary collapse

Instance Method Details

#country_checkedObject



2
3
4
# File 'app/helpers/admin/zones_helper.rb', line 2

def country_checked
  return object.kind == "country" ? "checked = 'true'" : ""
end

#state_checkedObject



5
6
7
# File 'app/helpers/admin/zones_helper.rb', line 5

def state_checked
  return object.kind == "state" ? "checked = 'true'" : ""
end

#zone_checkedObject



8
9
10
# File 'app/helpers/admin/zones_helper.rb', line 8

def zone_checked
  return object.kind == "zone" ? "checked = 'true'" : ""
end