Commit 8dc2e2b6793c5a848b1076022fc2873c1711541e
1 parent
be35b464
Exists in
master
and in
29 other branches
environment: add location fields
Showing
1 changed file
with
12 additions
and
2 deletions
Show diff stats
app/models/environment.rb
@@ -283,8 +283,18 @@ class Environment < ActiveRecord::Base | @@ -283,8 +283,18 @@ class Environment < ActiveRecord::Base | ||
283 | settings_items :message_for_disabled_enterprise, :type => String, | 283 | settings_items :message_for_disabled_enterprise, :type => String, |
284 | :default => _('This enterprise needs to be enabled.') | 284 | :default => _('This enterprise needs to be enabled.') |
285 | 285 | ||
286 | - settings_items :location, :type => String | ||
287 | - settings_items :country_name, :type => String | 286 | + settings_items :contact_phone, type: String |
287 | + settings_items :address, type: String | ||
288 | + settings_items :city, type: String | ||
289 | + settings_items :state, type: String | ||
290 | + settings_items :country_name, type: String | ||
291 | + settings_items :lat, type: Float | ||
292 | + settings_items :lng, type: Float | ||
293 | + settings_items :postal_code, type: String | ||
294 | + settings_items :location, type: String | ||
295 | + | ||
296 | + alias_method :zip_code=, :postal_code | ||
297 | + alias_method :zip_code, :postal_code | ||
288 | 298 | ||
289 | settings_items :layout_template, :type => String, :default => 'default' | 299 | settings_items :layout_template, :type => String, :default => 'default' |
290 | settings_items :homepage, :type => String | 300 | settings_items :homepage, :type => String |