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

pluralize or alias for build_model? #1

Open
croaky opened this issue Jun 25, 2009 · 0 comments
Open

pluralize or alias for build_model? #1

croaky opened this issue Jun 25, 2009 · 0 comments

Comments

@croaky
Copy link

croaky commented Jun 25, 2009

I bumped up against errors that didn't reveal much to me because I accidentally wrote build_model :user instead of build_model :users.

To help future users of acts_as_fu, what do you think of these two approaches?

require 'active_support/core_ext' and name.pluralize on line 25 (ActsAsFu::Connection.connection.create_table)

or

alias :build_table, :build_model

?

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

No branches or pull requests

1 participant