Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle allowed engines #1108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

Xavier-IV
Copy link

Overview

Closes #1071

Currently if you're using tailwindcss with rails, it will bypass this field as tailwindcss.

Adding a small validation to ensure only allowed engines can be handled.

Fixed behaviour

# in rails project with tailwindcss
$ rails g kaminari:views default

      create  app/views/kaminari/_first_page.html.erb
      create  app/views/kaminari/_gap.html.erb
      create  app/views/kaminari/_last_page.html.erb
      create  app/views/kaminari/_next_page.html.erb
      create  app/views/kaminari/_page.html.erb
      create  app/views/kaminari/_paginator.html.erb
      create  app/views/kaminari/_prev_page.html.erb

$ rails d kaminari:views default

      remove  app/views/kaminari/_first_page.html.erb
      remove  app/views/kaminari/_gap.html.erb
      remove  app/views/kaminari/_last_page.html.erb
      remove  app/views/kaminari/_next_page.html.erb
      remove  app/views/kaminari/_page.html.erb
      remove  app/views/kaminari/_paginator.html.erb
      remove  app/views/kaminari/_prev_page.html.erb

Fixes rails g kaminari:views doesn't generate anything kaminari#1071
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rails g kaminari:views doesn't generate anything
1 participant