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

Version Path
acts_as_monitor-1.0.4 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-1.0.2 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-1.0.1 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-0.1.2 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-0.1.1 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-0.1.0 app/controllers/acts_as_monitor/monitors_controller.rb
acts_as_monitor-0.0.9 app/controllers/acts_as_monitor/monitors_controller.rb