inherited_resources
inherited_resources copied to clipboard
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.31.2 to 1.35.0. Release notes Sourced from rubocop's releases. RuboCop 1.35 New features #9364: Add Style/MagicCommentFormat cop. (@dvandersluis, @mattbearman) #10776: New option (consistent) for EnforcedShorthandSyntax in Style/HashSyntax...
This issue was originally reported at https://github.com/activeadmin/activeadmin/issues/2908 Current workarounds (from the engine) are: - Rename `Base` classes - Add an empty `Base` class ``` class Base end module MyCustomEngine class...
And use a symmetric setup by symlinking Gemfile and Gemfile.lock at the root of the repository to the Gemfiles for the latest supported Rails version.
All that was needed to support Rails 7 in this gem was to update the gemspec. This means that even in the most likely release to break anything, a major...
I have this configuration in my activeadmin file: ```ruby ActiveAdmin.register Assignments::Model::Rate, as: 'Rate' do belongs_to :assignment, param: :reference_number, parent_class: Assignments::Model::Assignment ``` But I'm not seeing the route get generated with...
I'm using Trailblazer Cell (https://github.com/trailblazer/trailblazer-cells) and would like to use the resource URL helpers from Inherited Resources. I naively expected to be able to include UrlHelpers in a similar fashion...
`InheritedResource::Base` [inherits from](https://github.com/activeadmin/inherited_resources/blob/a863c1b58019f63e0ecf34960d4fe4737fc94bfb/app/controllers/inherited_resources/base.rb#L11) `::ApplicationController` and that's the source of a lot of issues for us during development. (We use it with ActiveAdmin). ApplicationController can be touched by many people and...
```rb arg.respond_to?(:permitted?) ? arg.to_h : arg ``` https://github.com/activeadmin/inherited_resources/blob/master/lib/inherited_resources/url_helpers.rb#L200 If resource passed in has `permitted?` but not `to_h` method, this will crash.
We are getting and infinite loop if our model or resource of active admin is called resource. ```ruby def permitted_params return nil unless respond_to?(resource_params_method_name, true) {resource_request_name => send(resource_params_method_name)} rescue ActionController::ParameterMissing...
To make `inherited_resources` work with the current version of rails out of the box, it is not allowed to not redirect if status code is 200 on a submitted form....