Sha256: d17dd228b47eee0a68af79172b7d9926f06fcb52f086db0873cb6edb48d1ab0e
Contents?: true
Size: 526 Bytes
Versions: 7
Compression:
Stored size: 526 Bytes
Contents
module ActsAsMonitor class MonitorsController < ::ApplicationController def show @monitor = eval(params[:class_name]).find(params[:id]) if monitor_valid?(params) Rails::logger.info("MonitorsController @monitor=#{@monitor.inspect}") respond_to do |format| format.js do view = render_to_string "show" #render :json => {"text" => @status.status} render :json => {"text" => view} end format.html end end end end
Version data entries
7 entries across 7 versions & 1 rubygems