Flowdock
method

gsub_file

Importance_1
v2.3.8 - Show latest stable - 0 notes - Class: Rails::TemplateRunner
gsub_file(relative_destination, regexp, *args, &block) protected

Run a regular expression replacement on a file

Example

  gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1'
Show source
Register or log in to add new notes.