Sha256: 407ba84cd0b35fd75ea879cb3ff4aaa011ad98b3ff471e3f79479b07f271d982

Contents?: true

Size: 334 Bytes

Versions: 5

Compression:

Stored size: 334 Bytes

Contents

class Dryml::DrymlSupportController < ActionController::Base

  def edit_source
    dryml_editor = ENV['DRYML_EDITOR']
    if dryml_editor
      file = File.join(RAILS_ROOT, params[:file])
      command = dryml_editor.sub(":file", file).sub(":line", params[:line])
      system(command)
    end
    render :nothing => true
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dryml-1.1.0 lib/dryml/dryml_support_controller.rb
dryml-1.1.0.pre4 lib/dryml/dryml_support_controller.rb
dryml-1.1.0.pre3 lib/dryml/dryml_support_controller.rb
dryml-1.1.0.pre2 lib/dryml/dryml_support_controller.rb
dryml-1.1.0.pre0 lib/dryml/dryml_support_controller.rb