Skip to content

Commit

Permalink
use SelectRenderer for add_options and include FormOptionsHelper for …
Browse files Browse the repository at this point in the history
…currency_options_for_select
  • Loading branch information
hishammalik committed Dec 12, 2023
1 parent db7a52f commit e072788
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/currency_select_tag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ module Helpers
#
class CurrencySelectTag < Tags::Base
include ToCurrencySelectTag
include FormOptionsHelper
include ActionView::Helpers::Tags::SelectRenderer if defined?(ActionView::Helpers::Tags::SelectRenderer)
end
end
end
1 change: 1 addition & 0 deletions lib/to_currency_select_tag.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# frozen_string_literal: true
require 'form_options_helper'

# CurrencySelect
module ActionView
Expand Down

0 comments on commit e072788

Please sign in to comment.