Yauheni Dakuka

Results 32 comments of Yauheni Dakuka

@client9 @shawnps UP.

Oh sorry, I still want to finish this. There is not enough time for the last month.

@JuPlutonic I don't work with it anymore. Feel free to complete MR.

Now it is just an idea.

> The default order of controller actions in rails scaffolds are: > index show new edit create update destroy Yes, and the order is grouped by HTTP method. However, the...

> A cop can then be written to allow the developer to configure their preferred order (without any default). [The cop](https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactionorder) has been already written. I believe the issue remains...

Use [active_flag](https://github.com/kenn/active_flag) gem instead.

I have the following code: ```ruby task lint: :rubocop ``` I run rubocop and get offences: ```console ydakuka@yauhenid:~/Work/project$ bin/rails_docker rubocop Rakefile Inspecting 1 file C Offenses: Rakefile:3:1: C: Rake/Desc: Describe...

https://github.com/rubocop/rubocop/issues/12862

And the second case: I have the following code: ```ruby def parse_user_params params[:user] = params[:user]&.permit(*policy(User).permitted_attributes)&.to_h &.merge( params[:user_form] &.permit(*policy(UserForm).permitted_attributes) .to_h, ) end ``` I run `rubocop -A` and get: ```ruby def...