<commit_before>#
# = Tabs on Rails
#
# A simple Ruby on Rails plugin for creating and managing Tabs.
#
#
# Category::    Rails
# Package::     TabsOnRails
# Author::      <NAME> <<EMAIL>>
# License::     MIT License
#
#--
#
#++


module TabsOnRails

  if defined? Rails::Railtie
    class Railtie < ::Rails::Railtie
      # initializer "tabs_on_rails.initialize" do
      #   ActiveSupport.on_load :action_controller do
      #     ::ActionController::Base.send :include, TabsOnRails::ActionController
      #   end
      # end
    end
  end

end

require "active_support"
require "action_controller"

# There should be a better way to do this!
# I can't rely on Railtie#initializer because TabsOnRails::ActionController
# provides class methods which should be available when the class
# is evaluated.
ActionController::Base.send :include, TabsOnRails::ActionController<commit_msg>Move on_load outside the block because in tests the :on_load doesn't seem to be correctly triggered.<commit_after>#
# = Tabs on Rails
#
# A simple Ruby on Rails plugin for creating and managing Tabs.
#
#
# Category::    Rails
# Package::     TabsOnRails
# Author::      <NAME> <<EMAIL>>
# License::     MIT License
#
#--
#
#++


module TabsOnRails

  class Railtie < Rails::Railtie
    initializer "tabs_on_rails.initialize" do
    end
  end

end

ActiveSupport.on_load(:action_controller) do
  include TabsOnRails::ActionController
end
{'fraction_non_alphanumeric': 0.09661495063469676, 'fraction_numerical': 0.0, 'mean_word_length': 3.7777777777777777, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '897911', 'n_tokens_mistral': 462, 'n_tokens_neox': 438, 'n_words': 137}