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

David dual boot #1104

Closed
wants to merge 4 commits into from
Closed

David dual boot #1104

wants to merge 4 commits into from

Conversation

davidwessman
Copy link
Member

Hej från en gammal och dryg!

Denna PR lägger till en extra Gemfile.lock, som kan användas för att testa nästa Rails-version för att se vilka dependencies som behöver uppdateras.

Fixade också lite andra små grejer som gjorde att testerna inte körde lokalt för mig.

Skulle säkert vara bra att testa på stage först.

- This allows to try the next Rails version with existing dependencies.
- Sets required on both tool and user
user = create(:user)
attributes = {
user_id: user.id,
purpose: "To build a house",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

end

trait :other do
semester Post::OTHER
semester {Post::OTHER}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/SpaceInsideBlockBraces: Space missing inside {.
Layout/SpaceInsideBlockBraces: Space missing inside }.

end

trait :spring do
semester Post::SPRING
semester {Post::SPRING}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/SpaceInsideBlockBraces: Space missing inside {.
Layout/SpaceInsideBlockBraces: Space missing inside }.

if next?
gem 'rails', '~> 5.2'
else
gem 'rails', '5.1.6.2'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bundler/DuplicatedGem: Gem rails requirements already given on line 11 of the Gemfile.

@@ -1,10 +1,19 @@
def next?
File.basename(__FILE__) == "Gemfile.next"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.

@@ -3,7 +3,7 @@ class Admin::CouncilsController < Admin::BaseController
load_permissions_and_authorize_resource find_by: :url

def index
@council_grid = initialize_grid(Council, locale: :sv, order: 'council_translations.title')
@council_grid = initialize_grid(Council.with_translations(I18n.locale), order: 'council_translations.title')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Metrics/LineLength: Line is too long. [112/110]

@davidwessman
Copy link
Member Author

Stänger den här innan #1107 är klar.

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.

2 participants