summaryrefslogtreecommitdiff
path: root/app/models/location.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-22 11:12:06 -0700
committermo khan <mo@mokhan.ca>2014-02-22 11:12:06 -0700
commitef7eeb8ed18092bde97ebc30d249d32e56d5645f (patch)
tree28b6d98b366230ee1a0e559272ffee18d38c9b3f /app/models/location.rb
parent64d63822a09d674d1257759b593a562711305d75 (diff)
found a weird bug with jbuilder and trying to render the location json node.
Diffstat (limited to 'app/models/location.rb')
-rw-r--r--app/models/location.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/location.rb b/app/models/location.rb
index bf7b7ef..b74eabc 100644
--- a/app/models/location.rb
+++ b/app/models/location.rb
@@ -1,3 +1,3 @@
class Location < ActiveRecord::Base
- belongs_to :license
+ belongs_to :license, autosave: true
end