Sha256: 3ef67871d538c4369e1ccb2808b8b755089000f31d89d1f8d178f7c9f16fcada

Contents?: true

Size: 288 Bytes

Versions: 2

Compression:

Stored size: 288 Bytes

Contents

class RootController < ApplicationController

  helper MeterCat::MetersHelper
  helper StatusCat::StatusHelper

  def index
    @range = (Date.today - 7) .. Date.today
    @meters = MeterCat::Meter.to_h( @range )
  end

  def mail
    MeterCat.mail
    render :text => 'Mailed'
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
meter_cat-0.0.7 spec/dummy/app/controllers/root_controller.rb
meter_cat-0.0.6 spec/dummy/app/controllers/root_controller.rb