tasks/deface.rake in deface-0.5.2 vs tasks/deface.rake in deface-0.5.3
- old
+ new
@@ -1,7 +1,7 @@
namespace :deface do
desc 'Gets source of html element from template.'
- task :get_source, :template_path, :selector, :needs => :environment do |t, args|
+ task :get_source, [:template_path, :selector] => [:environment] do |t, args|
include Deface::TemplateHelper
begin
source = load_template_source(args[:template_path], false)
output = element_source(source, args[:selector])