Class: Admin::BadgesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/admin/badges_controller.rb

Instance Method Summary collapse

Instance Method Details

#addedObject


4
5
6
7
8
9
10
# File 'app/controllers/admin/badges_controller.rb', line 4

def added
  @date_from = Date.parse(params[:date_from])
  @date_to = Date.parse(params[:date_to])
  @projects_from = projects_with_badges_before(@date_from)
  @projects_to = projects_with_badges_before(@date_to)
  @projects = @projects_to - @projects_from
end

#in_readmeObject


12
13
14
# File 'app/controllers/admin/badges_controller.rb', line 12

def in_readme
  @projects = projects_with_badges_before(Time.now)
end