Rails 3.2 - how to write an image path in a config/initializer script ?

15 views
Skip to first unread message

Erwin

unread,
Mar 6, 2013, 9:44:51 AM3/6/13
to rubyonra...@googlegroups.com
In my config/initializers/payday.rb  , I need to write an image path to an asset image ...

Currently it's written like that :
Payday::Config.default.invoice_logo = "#{Rails.root}/public/images/store/logo.png"

how can I set the path, as asset_path cannot be used yet during initialization ?
if not possible I guess I should have a copy of the image in the public folder ?

thanks for feedback

Reply all
Reply to author
Forward
0 new messages