Other
- Upgrade to latest Pundit: 2.2.0 (varvet#266)
Fix
- Render values in columns (varvet#263)
- Correct README to match Godmin 2 (varvet#262)
Fix
- Use Pundit >= 2.0.0 so that namespaces are handled correctly (varvet#260)
Other
- Build and test against Ruby 3.0
Bug fixes
- Regression: within an Engine, always look for Pundit policies in the engine (varvet#259)
Bug fixes
- Use symbol in path for compatibility with the latest Rails security patches (varvet#256)
Other
- Build and test against Ruby 2.6 and 2.7
- Stop building and testing against unsupported rubies (2.5 and older). These may still work and PRs may still be accepted.
Features
- Allow skipping authorization per action (varvet#231)
Bug fixes
- Support namespaced models when generating resources (varvet#181)
Other
- Drop support for Rails 4 (varvet#239)
- Better policy lookups for namespaced models (varvet#180)
- Use Pundit for authorization (varvet#180)
- Rails 6 support (varvet#248) and (varvet#250)
In order to upgrade
- Upgrade to at least Rails 5 and Ruby 2.2.2
- If using an admin engine, create a namespaced model for every resource, inheriting from the main app model
- Replace any
authenticate_admin_user
withauthenticate
- Replace any
skip_before_action :authenticate_admin_user
withprepend_before_action :disable_authentication
- Replace any
rescue_from NotAuthorizedError
withrescue_from Pundit::NotAuthorizedError
Features
- Support for nested resources (varvet#189)
Features
- Support group queries in scopes and filters (varvet#208)
- Change color of remove buttons, so they're not grabbing all the attention (varvet#212)
Bug fixes
- Fix permitted params in sessions controller to work with models other than
AdminUser
(varvet#210)
Other
- Remove authentication alert (varvet#207)
- Add table caption for tests (varvet#187)
Bug fixes
- Fix FileSystemResolver issue (varvet#202)
Other
- Update template for Rails 5 (https://github.com/varvet/godmin/commit/95e0a7917dd9767d77c3bfc876ebbf0a6036f347)
Features
- Increased batch action checkbox click area (varvet#183)
- Adds titles to action links (varvet#185)
- Rails 5 support (varvet#199)
Bug fixes
- Use translated title on login page (varvet#195)
- Hide batch action toggle when no batch action available (varvet#197)
- Remove hidden field for multiselect filters (varvet#169)
Other
- Fixes a deprecation warning on Rails 4.2.5.1 (varvet#188)
- Adds caching partial overrides to increase table rendering speed (varvet#184)
Features
- Adds support for custom ordering of columns (varvet#168)
- Adds passing of options to association form helper (varvet#172)
- Adds passing of html options to association form helper (varvet#176)
Bug fixes
- Fixes an issue with the template resolver and Rails 4.2.5.1 (varvet#175)
Features
- Adds locale for pt-BR (Brazilian Portuguese) (varvet#141)
- New sandbox template with with more examples (varvet#135)
- Permits belongs to association by default (varvet#149)
- Enables responsive design (varvet#146)
- Batch actions now receive a relation instead of an array (varvet#158)
Bug fixes
- Fixes a bug that masked errors in templates with a template not found error (varvet#142)
- Fixes a namespace issue with the authentication generator (varvet#150)
Release of 1.0.0 🎉
Bug fixes
- Fixes a bug which made it impossible to override the datetimepicker locale (varvet#132)
Bug fixes
- Adds support for plural engines (varvet#128)
- Remove turbolinks from application.js if present (varvet#129)
Bug fixes
- Fixes broken sign in page
Bug fixes
- Fixes issue where column ordering on index table didn't work (varvet#124)
Other
- Adds integration tests
- Removes the namespace config in
initializers/godmin.rb
In order to upgrade
- Remove the
initializers/godmin.rb
file
Features
- Adds new navigation helpers for building a custom navbar (varvet#54)
Other
- Removes the godmin router method
In order to upgrade
- Remove the
godmin do
block from theconfig/routes.rb
file - Specify a root route if there is none already
- Create a
shared/_navigation.html.erb
partial if there is none already
Bug fixes
- Fixes issue with authentication generator not modifying the application controller
Bug fixes
- Fixes broken collection select helper
Features
- Adds
destroy_resource
method toResourceService
- Adds query param to authorize
- Adds authorization to batch actions (varvet#33)
- Adds show page (varvet#77)
- Adds option to change add text on dropdowns (varvet#106)
- Adds CSV export (varvet#86)
- JSON export can now be controlled using
attrs_for_export
or by overriding a jbuilder
Bug fixes
- Fixes a regression where filter labels were not translated
Other
- Split resources into controllers and service objects (varvet#79)
- Renames the following modules:
- Godmin::Application -> Godmin::ApplicationController
- Godmin::Resource -> Godmin::Resources::ResourceController
- Godmin::Sessions -> Godmin::SessionsController
Bug fixes
- Adds the possibility to pass options to the
date_field
anddatetime_field
form helpers
Bug fixes
- Fixes standard resource params for multi-word models
Bug fixes
- Fixes multi-select selectize issue (varvet#71)
Features
- Shows the number of items in each scope in the scope tab (varvet#16)
- Two new overridable methods for resources:
build_resource
andfind_resource
- Translatable title (varvet#17)
Bug fixes
- Fixes a bug where the wrong template would be picked (varvet#39)
- Fixes a bug so the resolver works with namespaces templates.
- Fixes an autoloading issue (varvet#60)
- Godmin rescues
NotAuthorizedError
and returns a 403 Forbidden HTTP status.
Other
- Cleaned up generators (varvet#28)
- Restructured the locale files a bit
Features
- Bump bootstrap to 3.3.3
- Extracted button actions partial
Bug fixes
- Created resources are now properly scoped by
resources_relation
- Fixes broken signin form
Features
- Support for Rails 4.2
- New form system (varvet#50)
Features
- Bundled datetimepicker
- Exposed JavaScript API
Notes
- You must now require godmin in application.js and application.css
- You can no longer use the
select-tag
class to initialize a select box
Bug fixes
- Fixes Godmin::FormBuilder issue
Features
- Added Godmin::FormBuilder
Bug fixes
- Pagination offset fix
Features
- Replaces select2 with selectize
- Adds flash messages (varvet#26)
- Adds redirect hooks (varvet#27)
- Replaces kaminari
Bug fixes
- Form fallbacks to regular input instead of association. (varvet#18)
- Install generator adds
require "godmin"
if it is installed in an engine. - Fixes default permitted params to work with multiword models.
Bug fixes
- Removed rails executable from /bin folder.