- 06 Oct, 2020 5 commits
-
-
Carl Reyes authored
When using the `rails g administrate:dashboard` generator with an uninitialized model name, the method will raise a NameError but the `app/dashboards/#{foo}_dashboard.rb` file will be created regardless. This happens because the generator uses the built-in `file_name` parameter to create the file name regardless of whether or not the rest of the generator runs. To solve this, we simply check whether or not `klass` is truthy before actually generating the file because this is the same guard that we use for the rest of the generator.
-
Petteri Räty authored
Fixes #1242
-
Rob authored
Because there may be Rails projects with the routes.rb file in a different location than Rails.root/config a helper was added to locate the file. The helper will look in the 'normal' routes.rb location and then search through the project if not located there.
-
Nick Charlton authored
-
Peter Kehinde Olofinmoyin authored
Previously, the "New [model]" button on the index page wasn't translated, this uses `display_resource_name` to translate that correctly. Fixes #1677, #1072 Closes #1627 This isn't perfect for all languages, so #1783 will cover incorrect downcasing. Co-authored-by:
Pablo Brasero <pablo@pablobm.com> Co-authored-by:
Rachael Ewins <rachaelewins@hotmail.com>
-
- 05 Oct, 2020 9 commits
-
-
Tino Zorotovic authored
Begins the changes for #1778 Closes #1587 Co-authored-by:
Tino <tino@klassapp.com>
-
Brandon Hicks authored
-
Bryan Mark Fajutag authored
Replaces the functionality wherein nil is already included in the possible options of belongs_to. In the current functionality of administrate, if you add `include_blank: true` in f.select it would have double blank option in the selections. Changes in spec/factories.rb where made by running: ``` rubocop \ --require rubocop-rspec \ --only FactoryBot/AttributeDefinedStatically \ --auto-correct ``` Co-authored-by:
Bryan Mark Fajutag <bryan.fajutag@adish.co.jp>
-
Conrad Beach authored
On the show page for a record, we were previously displaying the form attributes when rendering the child of a has_one relationship. This makes us display the show page attributes, fitting better when rendering a record on a show page. Furthermore, using the form attributes can lead to displaying odd attributes such as "Password Confirmation". Co-authored-by:
Conrad Beach <conradbeach@gmail.com>
-
rnitta authored
When a time column is nullable in the database, the following can throw an undefined method error: ``` <%= field.data.strftime("%I:%M%p").to_s %> ```
-
Niklas Häusele authored
Fixes #1021
-
shu_numata authored
-
Corrado Masciullo authored
-
Mike Gabriel authored
Long values such as MD5 hashes are currently being outputted on a single line for either `Field::String` or `Field::Text`. This commit adds a `word-break` to `.attribute-data` which allows word-wrapping to occur while maintaining copy and paste-ability.
-
- 25 Sep, 2020 2 commits
-
-
Rachael Ewins authored
-
dependabot-preview[bot] authored
Bumps [sentry-raven](https://github.com/getsentry/raven-ruby) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/getsentry/raven-ruby/releases) - [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/raven-ruby/compare/3.1.0...3.1.1 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 21 Sep, 2020 2 commits
-
-
Samnang Chhun authored
When searching an association with belongs_to :foobar, optional: true, the current implementation uses INNER JOIN which will filter out resources where the association does not exist. By default when searching associations, it should LEFT OUTER JOIN the association. This feature is supported from Rails 5 onwards.
-
Nick Charlton authored
In #1749, we removed `autoprefixer-rails` from the usual `Gemfile` but it didn't get removed from the `gemspec`.
-
- 18 Sep, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [sentry-raven](https://github.com/getsentry/raven-ruby) from 3.0.4 to 3.1.0. - [Release notes](https://github.com/getsentry/raven-ruby/releases) - [Changelog](https://github.com/getsentry/sentry-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/raven-ruby/compare/3.0.4...3.1.0 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 17 Sep, 2020 2 commits
-
-
dependabot-preview[bot] authored
Bumps [faker](https://github.com/faker-ruby/faker) from 2.13.0 to 2.14.0. - [Release notes](https://github.com/faker-ruby/faker/releases) - [Changelog](https://github.com/faker-ruby/faker/blob/master/CHANGELOG.md) - [Commits](https://github.com/faker-ruby/faker/compare/v2.13.0...v2.14.0 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
Emily Wright authored
* Autoprefixer was deprecated on 2020-08-03, but later undeprecated, * But we don't need it for anything important in our CSS. Closes #1733 Co-authored-by:
Kehinde Olofinmoyin <Kehindeolofinmoyin@hotmail.com>
-
- 14 Sep, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [webmock](https://github.com/bblimke/webmock) from 3.8.3 to 3.9.1. - [Release notes](https://github.com/bblimke/webmock/releases) - [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md) - [Commits](https://github.com/bblimke/webmock/compare/v3.8.3...v3.9.1 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 10 Sep, 2020 2 commits
-
-
Victor Feijó authored
-
dependabot-preview[bot] authored
Bumps [actionview](https://github.com/rails/rails) from 6.0.3.2 to 6.0.3.3. **This update includes a security fix.** - [Release notes](https://github.com/rails/rails/releases) - [Changelog](https://github.com/rails/rails/blob/v6.0.3.3/actionview/CHANGELOG.md) - [Commits](https://github.com/rails/rails/compare/v6.0.3.2...v6.0.3.3 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 08 Sep, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [unicorn](https://yhbt.net/unicorn/ ) from 5.6.0 to 5.7.0. Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 31 Aug, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [sentry-raven](https://github.com/getsentry/raven-ruby) from 3.0.3 to 3.0.4. - [Release notes](https://github.com/getsentry/raven-ruby/releases) - [Changelog](https://github.com/getsentry/raven-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/raven-ruby/compare/3.0.3...3.0.4 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 27 Aug, 2020 2 commits
-
-
dependabot-preview[bot] authored
Bumps [sentry-raven](https://github.com/getsentry/raven-ruby) from 3.0.2 to 3.0.3. - [Release notes](https://github.com/getsentry/raven-ruby/releases) - [Changelog](https://github.com/getsentry/raven-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/raven-ruby/compare/3.0.2...3.0.3 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
dependabot-preview[bot] authored
Bumps [shoulda-matchers](https://github.com/thoughtbot/shoulda-matchers) from 4.3.0 to 4.4.1. - [Release notes](https://github.com/thoughtbot/shoulda-matchers/releases) - [Changelog](https://github.com/thoughtbot/shoulda-matchers/blob/master/CHANGELOG.md) - [Commits](https://github.com/thoughtbot/shoulda-matchers/compare/v4.3.0...v4.4.1 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 25 Aug, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 9.8.6.2 to 9.8.6.3. - [Release notes](https://github.com/ai/autoprefixer-rails/releases) - [Changelog](https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/ai/autoprefixer-rails/compare/9.8.6.2...9.8.6.3 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 21 Aug, 2020 2 commits
-
-
Pablo Brasero authored
-
dependabot-preview[bot] authored
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 9.8.6.1 to 9.8.6.2. - [Release notes](https://github.com/ai/autoprefixer-rails/releases) - [Changelog](https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/ai/autoprefixer-rails/compare/9.8.6.1...9.8.6.2 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 20 Aug, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [sentry-raven](https://github.com/getsentry/raven-ruby) from 3.0.0 to 3.0.2. - [Release notes](https://github.com/getsentry/raven-ruby/releases) - [Changelog](https://github.com/getsentry/raven-ruby/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/raven-ruby/compare/v3.0.0...3.0.2 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 14 Aug, 2020 3 commits
-
-
Nick Charlton authored
Fixes #1741
-
Nick Charlton authored
This makes our new requirement Rails 5.0 (which was [released on 2016-06-30][1] and went into [important security fix status on 2017-04-21][2]) [1]: https://weblog.rubyonrails.org/2016/6/30/Rails-5-0-final/ [2]: https://weblog.rubyonrails.org/2017/4/21/Rails-5-1-rc2/
-
Nick Charlton authored
* Ignores the `doc/` directory so we don't commit the generated docs, * Includes the existing docs as files, plus the CHANGELOG, CoC, and LICENSE. Fixes: #1605
-
- 13 Aug, 2020 2 commits
-
-
Grace authored
-
Rodrigo Walter Ehresmann authored
(Originally by @rwehresmann. Unfortunately GitHub removes commit attribution when doing squash+merge of a single commit.) There is a problem in the way we're calling `valid_action?` in the polymorphic field. Contextualizing: The `valid_action?` implementation receives as second argument the resource class name (constantize), and so will look for the correspondent controller and check if the action exists. In the polymorphic field, we're using this to display the attribute as a link or just plain text. The problem: In the `_show` partial we check for the field attribute, that will return just the attribute name, and polymorphic fields constantly have attribute names that don't correspond whit any controller name. Here is an example: I can have an Address model that have a polymorphic association that receives the name of `owner`, and the owner can be a Shop and User model. We have the `ShopsController` and `UsersController`, but not an `OwnersController`. As result, we'll be showing the owner as plain text only. The solution: Just inform the field data class instead of the attribute name. Doing so, using the example described above, we'll be checking for the ShopsController and UsersController instead of the OwnersController, properly showing the owner as a link.
-
- 12 Aug, 2020 1 commit
-
-
Peter Kehinde Olofinmoyin authored
Previously, only `ATTRIBUTE_TYPES` was intended with two-spaces, this ensures that `COLLECTION_ATTRIBUTES`, `SHOW_PAGE_ATTRIBUTES` and `FORM_ATTRIBUTES` are correct too.
-
- 03 Aug, 2020 1 commit
-
-
dependabot-preview[bot] authored
Bumps [autoprefixer-rails](https://github.com/ai/autoprefixer-rails) from 9.8.6 to 9.8.6.1. - [Release notes](https://github.com/ai/autoprefixer-rails/releases) - [Changelog](https://github.com/ai/autoprefixer-rails/blob/master/CHANGELOG.md) - [Commits](https://github.com/ai/autoprefixer-rails/compare/9.8.6...9.8.6.1 ) Signed-off-by:
dependabot-preview[bot] <support@dependabot.com> Co-authored-by:
dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
-
- 31 Jul, 2020 1 commit
-
-
Pablo Brasero authored
Using the param :page for top-level pagination (ie: index pages as opposed to has_many lists in show pages) conflicts with paginating resources whose type happens to be "Page". Instead of a unit test, a feature spec is used as the pagination code is all over the place making this quite tricky. Ideally, we should move all the pagination code into a single module that can be tested in isolation. This in turn is not easy, as Kaminari doesn't make it easy. A new feature spec called pagination_spec.rb, bringing over other pre-existing pagination examples, to help organise things, and also to take advantage of the helper method expect_to_appear_in_order in the new example. Fixes #1709
-