Skip to content

Commit

Permalink
Merge branch 'master' of github.com:sachac/quantified
Browse files Browse the repository at this point in the history
  • Loading branch information
sachac committed May 25, 2015
2 parents 42f2086 + ff094d4 commit 8c3898d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions app/models/record_category.rb
Expand Up @@ -28,13 +28,15 @@ def update_data(data_fields)
end
if do_rename
self.records.each do |record|
data_fields.each do |row|
if row['oldkey'] and row['key'] != row['oldkey']
record.data[row['key']] = record.data[row['oldkey']]
record.data.delete(row['oldkey'])
end
if record.data
data_fields.each do |row|
if row['oldkey'] and row['key'] != row['oldkey']
record.data[row['key']] = record.data[row['oldkey']]
record.data.delete(row['oldkey'])
end
end
record.save!
end
record.save!
end
end
self.data = data_fields
Expand Down
2 changes: 1 addition & 1 deletion public/404.html
Expand Up @@ -20,7 +20,7 @@
<!-- This file lives in public/404.html -->
<div class="dialog">
<h1>The page you were looking for doesn't exist.</h1>
<p>You may have mistyped the address or the page may have moved. (This is probably my faoult, so please e-mail me at <a href="mailto:sacha@sachachua.com">sacha@sachachua.com</a> and tell me what you think might be going on. =) )</p>
<p>You may have mistyped the address or the page may have moved. (This is probably my fault, so please e-mail me at <a href="mailto:sacha@sachachua.com">sacha@sachachua.com</a> and tell me what you think might be going on. =) )</p>
</div>
</body>
</html>

0 comments on commit 8c3898d

Please sign in to comment.