lib/generators/demo/demo_generator.rb in generator-spec-0.3.3 vs lib/generators/demo/demo_generator.rb in generator-spec-0.3.4
- old
+ new
@@ -5,10 +5,10 @@
def self.source_root
@source_root ||= File.expand_path("../../templates", __FILE__)
end
- def make_canable_able
+ def make_canable_able
if File.exist?(model_file_name)
@model_file_txt = File.open(model_file_name).read
after_txt = find_after_txt(model_file_txt)
inject_into_file(model_file_name, canable_include_txt, :after => after_txt) if after_txt
else