Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify the name to be used for ActiveModel::Name fixes #1168 #1169

Merged
merged 1 commit into from May 20, 2011

Conversation

senny
Copy link
Member

@senny senny commented May 20, 2011

This patch allows to specify the name of your models independent of the class name.

I added a third Argument to the #initialize method to maintain backward compatibility. It would probably be cleaner to add an options hash after the class, which contains the namespace and the name options.

This request solves the issue #1168

This patch allows to specify the name of your models independent of the class name.
josevalim added a commit that referenced this pull request May 20, 2011
Specify the name to be used for ActiveModel::Name fixes #1168
@josevalim josevalim merged commit 19ee841 into rails:master May 20, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants