fixed infinit loop

This commit is contained in:
2016-04-21 17:23:50 +02:00
parent 4a46b14c29
commit e134326b9c
4 changed files with 10 additions and 10 deletions
+1
View File
@@ -7,6 +7,7 @@
# Ignore bundler config. # Ignore bundler config.
/.bundle /.bundle
/.rspec /.rspec
.ruby-version
# Ignore all logfiles and tempfiles. # Ignore all logfiles and tempfiles.
/log/* /log/*
+3
View File
@@ -248,3 +248,6 @@ DEPENDENCIES
turbolinks turbolinks
uglifier (>= 1.3.0) uglifier (>= 1.3.0)
web-console (~> 2.0) web-console (~> 2.0)
BUNDLED WITH
1.10.2
+3 -5
View File
@@ -1,7 +1,5 @@
module Admin class PagesController < Admin::ApplicationController
class PagesController < Admin::ApplicationController def map
def map @supporters = Supporter.where(:coordinates.ne => nil).only(:coordinates, :support)
@supporters = Supporter.where(:coordinates.ne => nil).only(:coordinates, :support)
end
end end
end end
@@ -1,7 +1,5 @@
module Admin class SupportersController < Admin::ApplicationController
class SupportersController < Admin::ApplicationController def index
def index @supporters = Supporter.desc(:created_at)
@supporters = Supporter.desc(:created_at)
end
end end
end end