Just like we did for budgets, we're doing the same thing in all the places where we render background images attached by either regular users or administrators. This way we correctly render background images with characters like brackets or quotes.
9 lines
183 B
Ruby
9 lines
183 B
Ruby
class Budgets::BudgetComponent < ApplicationComponent
|
|
attr_reader :budget
|
|
delegate :attached_background_css, to: :helpers
|
|
|
|
def initialize(budget)
|
|
@budget = budget
|
|
end
|
|
end
|