Skip to content
This repository has been archived by the owner on Mar 15, 2021. It is now read-only.

Commit

Permalink
Ignore any model attribute errors produced in generator
Browse files Browse the repository at this point in the history
[fixes #248]
  • Loading branch information
paulelliott committed Apr 30, 2015
1 parent 427e330 commit 86b4ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rails/generators/fabrication/model/model_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ def copy_attributes_from_model
Rails::Generators::GeneratedAttribute.new(name, column.type)
}
end
rescue NameError
rescue
# no table? no problem!
end

end
Expand Down

0 comments on commit 86b4ef1

Please sign in to comment.