From bc613251a3463e8aba84330423fc8e14142c5b80 Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Mon, 30 Sep 2024 02:28:45 +0200 Subject: [PATCH] Coding style --- lib/generators/smart_listing/install_generator.rb | 4 ++++ lib/generators/smart_listing/views_generator.rb | 4 ++++ lib/smart_listing.rb | 8 ++++++-- 3 files changed, 14 insertions(+), 2 deletions(-) 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