JackHasaKeyboard
JackHasaKeyboard

Reputation: 1685

Is it bad naming convention to have a model named "model"?

Specifically in Ruby on Rails. I have a model and controller dedicated to 3D models and unfortunately "model" was the best name I could come up with.

I'm not sure if this is a subjective question so forgive me if it is.

Upvotes: 0

Views: 56

Answers (1)

Ben Hawker
Ben Hawker

Reputation: 949

I don't believe there is any problem with this.

Check out this app which provides an easy search against any reserved words in Rails. http://reservedwords.herokuapp.com/

Upvotes: 2

Related Questions