Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Model name Matrix conflict #403

Closed
alexmonteiro opened this Issue · 3 comments

3 participants

@alexmonteiro

Hi,
Good work for the job, Prawn is awseome tool to make pdfs reports.

However, during development my project I had a problem using a model called Matrix. Whitout Prawn gem installed this model works fine with ActiveRecord building the objects from matrices table.

Using Prawn gem my model Matrix stop works probably because in conflict with Prawn matrix model.

I wouldn't change my project model name, there is any solution to solve this kind of issue.

Thanks.

@bradediger
Collaborator

Matrix is a class in the Ruby standard library:

http://www.ruby-doc.org/stdlib-1.9.3/libdoc/matrix/rdoc/Matrix.html

It's probably not a great idea to have an ActiveRecord model with the same name, as this has the potential to cause conflicts with any library that depends on Matrix.

@bradediger bradediger closed this
@yob
Collaborator
@alexmonteiro

Yeah, that I suppose to be. Will change my model name.
Thanks for replies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.