diff options
author | AndrewMurrell <amurrel@purdue.edu> | 2014-04-28 18:29:01 -0400 |
---|---|---|
committer | AndrewMurrell <amurrel@purdue.edu> | 2014-04-28 18:29:01 -0400 |
commit | cd19b2591a52ac604632a70929448ee5e78c2568 (patch) | |
tree | 78be624ead45a8b85669f03a04e519a98a283693 /lib/sampling/manual.rb | |
parent | 5a7f5f6bc00d2abe2d5cd71363d4d5116bf4de51 (diff) |
Misc fixes. (This commit is from Luke on Andrew's box)
Diffstat (limited to 'lib/sampling/manual.rb')
-rw-r--r-- | lib/sampling/manual.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sampling/manual.rb b/lib/sampling/manual.rb index a190bd2..cfecd8f 100644 --- a/lib/sampling/manual.rb +++ b/lib/sampling/manual.rb @@ -4,7 +4,7 @@ module Sampling return true end - def can_get?(setting_name) + def self.can_get?(setting_name) return 1 end @@ -36,7 +36,7 @@ module Sampling @stats = @match.stats_from(self.class) require 'erb' - erb_filename = File.join(__FILE__.sub(/\.rb$/, '.svg.erb')) + erb_filename = File.join(__FILE__.sub(/\.rb$/, '.html.erb')) erb = ERB.new(File.read(erb_filename)) erb.filename = erb_filename return erb.result.html_safe |