I Have been using resque quite comfortably, But for following scenario
In one of my perform method
class A < ActiveRecord::Base
def self.perform
B.something
end
end
class B < ActiveRecord::Base
def self.something
l = Misc.get_locale
....
....
end
end
class Misc
def self.get_locale
return I18n.locale
end
end
Issue is that it always return I18n.locale as :en even though in my application config, I have set it to :us_en(or whatever), like below
config.i18n.default_locale = :us_en
config.i18n.locale = :us_en
Is it because I am reading that I18n.locale from a class and not a rails Model? Or is it because of some other reason?