diff --git a/lib/generators/smart_listing/install_generator.rb b/lib/generators/smart_listing/install_generator.rb index db28f84..ab3b9cb 100644 --- a/lib/generators/smart_listing/install_generator.rb +++ b/lib/generators/smart_listing/install_generator.rb @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +require 'rails/generators' + module SmartListing module Generators class InstallGenerator < Rails::Generators::Base diff --git a/lib/generators/smart_listing/views_generator.rb b/lib/generators/smart_listing/views_generator.rb index 7167590..7090fd6 100644 --- a/lib/generators/smart_listing/views_generator.rb +++ b/lib/generators/smart_listing/views_generator.rb @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +require 'rails/generators' + module SmartListing module Generators class ViewsGenerator < Rails::Generators::Base diff --git a/lib/smart_listing.rb b/lib/smart_listing.rb index eed5e2b..b84cade 100644 --- a/lib/smart_listing.rb +++ b/lib/smart_listing.rb @@ -1,9 +1,13 @@ # frozen_string_literal: true -require 'smart_listing/config' -require 'smart_listing/engine' +# require external dependencies require 'kaminari' +# require internal dependencies +require_relative 'smart_listing/engine' +require_relative 'smart_listing/config' +require_relative 'smart_listing/version' + # Fix parsing nested params module Kaminari module Helpers