Commit ba3f5563dcd587b79b02ddd960069d16fb3b5436
1 parent
5253ff98
Exists in
master
and in
1 other branch
hotfix for heroku's older Ruby version
Showing
2 changed files
with
8 additions
and
2 deletions
Show diff stats
app/controllers/questions_controller.rb
@@ -27,3 +27,11 @@ class QuestionsController < InheritedResources::Base | @@ -27,3 +27,11 @@ class QuestionsController < InheritedResources::Base | ||
27 | end | 27 | end |
28 | 28 | ||
29 | end | 29 | end |
30 | + | ||
31 | + | ||
32 | +class String | ||
33 | + unless defined? "".lines | ||
34 | + alias lines to_a | ||
35 | + #Ruby version compatibility | ||
36 | + end | ||
37 | +end | ||
30 | \ No newline at end of file | 38 | \ No newline at end of file |
app/models/question.rb
@@ -68,5 +68,3 @@ class Question < ActiveRecord::Base | @@ -68,5 +68,3 @@ class Question < ActiveRecord::Base | ||
68 | end | 68 | end |
69 | 69 | ||
70 | end | 70 | end |
71 | -#@site = User.create!(:email => 'pius+7@alum.mit.edu', :password => 'password', :password_confirmation => 'password') | ||
72 | -#@site.questions.create!(:name => 'what do you want?', :creator => @site.default_visitor) |