Skip to content

Commit

Permalink
Merged master with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKunze committed May 16, 2015
2 parents 71ec79e + e0e32d1 commit 68869e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea/
Gemfile.lock

*~
*.rbc
capybara-*.html
Expand Down
6 changes: 4 additions & 2 deletions app/controllers/snippets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def json
|snippet|
hash = {};
snippet.attributes.each{ |k,v| # All attributes of current snippet
if k != "created_at" && k != "updated_at" && k != "showTime"
if k != "created_at" && k != "updated_at" && k != "showTime" && k != "id"
hash[k] = v
end
}
Expand All @@ -37,8 +37,10 @@ def json

timeRemaining = (startTime - Time.zone.now + snippet.showTime).round
# timeRemaining = -1 if timeRemaining < 0,
hash["timeRemaining"]=timeRemaining

map[snippet.id]=hash

snippets[timeRemaining]=hash
}
jsonMap['snippets'] = snippets;
render json: jsonMap
Expand Down
2 changes: 1 addition & 1 deletion app/views/snippets/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<h2>rating marks</h2>
<% @rating_marks.each do |r| %>
<%= label_tag r.title %>
<%= check_box_tag "rating_marks[#{r.id}]", r.id %>
<%= check_box_tag "rating_marks[#{r.id}]", r.id, checked=true %>
<br />
<% end %>
<p>
Expand Down
4 changes: 4 additions & 0 deletions startServer.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
#!/bin/bash
bin/rails s -p3000 -b* -e development
<<<<<<< HEAD
=======

>>>>>>> master

0 comments on commit 68869e5

Please sign in to comment.