Sha256: 8dc5453c823cf9b2d04d90a012739455d216fc9729ba348d8ad1843dd2a5523f

Contents?: true

Size: 340 Bytes

Versions: 23

Compression:

Stored size: 340 Bytes

Contents

class Hobo::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

23 entries across 23 versions & 1 rubygems

Version Path
hobo-1.0.3 lib/hobo/dryml/dryml_support_controller.rb
hobo-1.0.2 lib/hobo/dryml/dryml_support_controller.rb
hobo-1.0.1 lib/hobo/dryml/dryml_support_controller.rb
hobo-1.0.0 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.106 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.105 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.104 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.103 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.102 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.101 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.100 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.9.0 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.10 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.9 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.8 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.3 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.1 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.2 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.4 lib/hobo/dryml/dryml_support_controller.rb
hobo-0.8.5 lib/hobo/dryml/dryml_support_controller.rb