Skip to content

Commit

Permalink
Merge pull request #66 from jrafanie/autoload_parsers_on_first_use
Browse files Browse the repository at this point in the history
Autoload the parsers on first use
  • Loading branch information
tboerger committed May 14, 2024
2 parents b17ec5f + b32fae8 commit 8cf59cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/gettext_i18n_rails_js/parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#

require_relative "parser/base"
require_relative "parser/javascript"
require_relative "parser/handlebars"

module GettextI18nRailsJs
module Parser
autoload(:Base, "gettext_i18n_rails_js/parser/base")
autoload(:Javascript, "gettext_i18n_rails_js/parser/javascript")
autoload(:Handlebars, "gettext_i18n_rails_js/parser/handlebars")
end
end

0 comments on commit 8cf59cd

Please sign in to comment.