I would like to use request.host in before_save inside model. Since
request object is only available in controller and not available inside
model, I cannot use request directly in model.
Creating a parameter for before_save also not an option since every save
will need to supply paramater to before_save.
Any body has ideas how to approach this problem?
May be extending active records just like created_by and updated_by
Thanks in advance.