Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d0aac884e3
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.56 kb
namespace :backtastic do
namespace :validations do
desc "Build put validation metadata in app/assets/javascripts"
task :build => :environment do
Dir[Rails.root.join "app", "models", '**', '*.rb'].each do |file|
begin
require file
rescue
end
end
erb = ERB.new File.read(File.join(File.dirname(__FILE__), "..", "templates", "rails_validations.coffee.erb"))
File.open(Rails.root.join("app", "assets", "javascripts", "rails_validations.coffee"), "w") { |f| f.puts(erb.result) }
end
end
end
Jump to Line
Something went wrong with that request. Please try again.