Michael Schuerig
2010-Aug-25 23:47 UTC
"Calling a method in Rails::Application is deprecated"
I''m in the process of moving an app and an engine from 3.0.0.beta4 to 3.0.0.rc2. Among other things, I''m seeing a deprecation warning that Calling a method in Rails::Application is deprecated, please call it directly in your application constant Foo::Application Does this mean there is no longer a generic way to access the application''s configuration? The engine I mentioned above contains code shared among several applications and I need a way to read and write configuration information without knowing the exact class of the application. Michael -- Michael Schuerig mailto:michael@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Chris Hanks
2010-Aug-26 04:39 UTC
Re: "Calling a method in Rails::Application is deprecated"
You can still use Rails.application. - Chris On Aug 25, 4:47 pm, Michael Schuerig <mich...@schuerig.de> wrote:> I''m in the process of moving an app and an engine from 3.0.0.beta4 to > 3.0.0.rc2. Among other things, I''m seeing a deprecation warning that > > Calling a method in Rails::Application is deprecated, please call it > directly in your application constant Foo::Application > > Does this mean there is no longer a generic way to access the > application''s configuration? The engine I mentioned above contains code > shared among several applications and I need a way to read and write > configuration information without knowing the exact class of the > application. > > Michael > > -- > Michael Schuerig > mailto:mich...@schuerig.dehttp://www.schuerig.de/michael/-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Michael Schuerig
2010-Aug-26 07:17 UTC
Re: "Calling a method in Rails::Application is deprecated"
On Thursday 26 August 2010, Chris Hanks wrote:> You can still use Rails.application.Yes, you''re right. Forget what I wrote, I misdiagnosed the problem. Michael -- Michael Schuerig mailto:michael@schuerig.de http://www.schuerig.de/michael/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.