Commit cef9f95d by Jon Frisby

Fix an issue with abstract classes causing filename resolution to choke.

parent 6f62d0e6
......@@ -461,7 +461,7 @@ module AnnotateModels
def resolve_filename(filename_template, model_name, table_name)
return filename_template.
gsub('%MODEL_NAME%', model_name).
gsub('%TABLE_NAME%', table_name)
gsub('%TABLE_NAME%', table_name || model_name.pluralize)
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment