Closed ryanong closed 8 years ago
I think adding proc support would be better though. I think that would make it less-coupled to Rails.
Then, if we want to DRY it up, we could just read the config.action_controller.asset_host
and set it in Railtie. That way you don't have to copy & paste the same proc into two places.
Am I understanding this correctly? Please let me know.
Partially? I have enough direction to make a PR. Then it will be clear
Hey Prem!
our asset_host uses a proc
I was thinking of submitting a pull request that uses
#asset_path
fromActionView::Helpers::AssetUrlHelper
instead of trying to compute it ourselves. Thoughts?