Sha256: c6447926887ee09df7c27b0f954fddcc250f07d45b545ec06185d2d2f5c5d491

Contents?: true

Size: 349 Bytes

Versions: 5

Compression:

Stored size: 349 Bytes

Contents

class DailyTablesController < InheritedResources::Base
  filter_resource_access

  def new
    build_resource.metric = "SqlQuery"
    new!
  end
  
  def create
    build_resource.user = current_user
    create!
  end
  
  def update
    update!
  end

  def show
    show! do
      @test_html = @daily_table.test if params[:test]
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
daily-0.0.8 app/controllers/daily_tables_controller.rb
daily-0.0.7 app/controllers/daily_tables_controller.rb
daily-0.0.6 app/controllers/daily_tables_controller.rb
daily-0.0.5 app/controllers/daily_tables_controller.rb
daily-0.0.4 app/controllers/daily_tables_controller.rb