search for: current_storefront

Displaying 1 result from an estimated 1 matches for "current_storefront".

2006 Apr 05
1
an instance of one model in another model''s definition?
...small problem. In addition to the cart, line-item, product, and order models (pretty much standard for this sort of thing), I have a Storefront model which locates the current storefront (by examining the domain name), and initializes itself. This works fine throughout, and by declaring a "current_storefront" method in application.rb and application_helper.rb, I have the current store''s info available throughout all controllers and views. OK so far. However, I''d like to make some changes to the other models on the fly depending on which storefront is loaded. For example, prod...