Ruby on Rails
Saturday, December 17, 2016
Hey guys!
I have a singleton model, App, with a column color.
I have a variables.scss.erb file with `$theme: "<%= App.first.color %>";` which is included in various other scss files.
When I precompile my assets it will take the current value for my App's color, but if it's updated in the application it won't take effect until the next precompile. To me it'd make sense to have a background job triggered when the App's color column is updated. But this is where I get lost, because I'd want this job to trigger a precompile, but is there anything else it would have to do/should do to work? Is this a bad idea?
Thanks,
Tom
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b4721a21-62a4-4364-87fb-969a30a806e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment