Skip to content

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.


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 }.


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.


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