Rain Chen
2014-Mar-03 09:22 UTC
how adding a "version" when generating a new rails project
every lib/gem will have a version, but seems everyone forgot the project
itself.
I preferred a config.version option in the applicaiton.rb after running rails
new <project>
module Todo
class Application < Rails::Application
...
config.version = '1.0.0'
endend
then in rails console, we can get the project's version using:
Todo.version
=> "1.0.0"
there are "versions" for db migrations, but why not the project? I
think
this can be a standard for a rails project
any thought for this idea?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to rubyonrails-core+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.