Other
- Upgrade to latest Pundit: 2.2.0 (#266)
Fix
Fix
- Use Pundit >= 2.0.0 so that namespaces are handled correctly (#260)
Other
- Build and test against Ruby 3.0
Bug fixes
- Regression: within an Engine, always look for Pundit policies in the engine (#259)
Bug fixes
- Use symbol in path for compatibility with the latest Rails security patches (#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 (#231)
Bug fixes
- Support namespaced models when generating resources (#181)
Other
- Drop support for Rails 4 (#239)
- Better policy lookups for namespaced models (#180)
- Use Pundit for authorization (#180)
- Rails 6 support (#248) and (#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 (#189)
Features
- Support group queries in scopes and filters (#208)
- Change color of remove buttons, so they're not grabbing all the attention (#212)
Bug fixes
- Fix permitted params in sessions controller to work with models other than
AdminUser
(#210)
Other
Bug fixes
- Fix FileSystemResolver issue (#202)
Other
- Update template for Rails 5 (https://github.com/varvet/godmin/commit/95e0a7917dd9767d77c3bfc876ebbf0a6036f347)
Features
- Increased batch action checkbox click area (#183)
- Adds titles to action links (#185)
- Rails 5 support (#199)
Bug fixes
- Use translated title on login page (#195)
- Hide batch action toggle when no batch action available (#197)
- Remove hidden field for multiselect filters (#169)
Other
- Fixes a deprecation warning on Rails 4.2.5.1 (#188)
- Adds caching partial overrides to increase table rendering speed (#184)
Features
- Adds support for custom ordering of columns (#168)
- Adds passing of options to association form helper (#172)
- Adds passing of html options to association form helper (#176)
Bug fixes
- Fixes an issue with the template resolver and Rails 4.2.5.1 (#175)
Features
- Adds locale for pt-BR (Brazilian Portuguese) (#141)
- New sandbox template with with more examples (#135)
- Permits belongs to association by default (#149)
- Enables responsive design (#146)
- Batch actions now receive a relation instead of an array (#158)
Bug fixes
- Fixes a bug that masked errors in templates with a template not found error (#142)
- Fixes a namespace issue with the authentication generator (#150)
Release of 1.0.0 🎉
Bug fixes
- Fixes a bug which made it impossible to override the datetimepicker locale (#132)
Bug fixes
Bug fixes
- Fixes broken sign in page
Bug fixes
- Fixes issue where column ordering on index table didn't work (#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 (#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 (#33)
- Adds show page (#77)
- Adds option to change add text on dropdowns (#106)
- Adds CSV export (#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 (#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 (#71)
Features
- Shows the number of items in each scope in the scope tab (#16)
- Two new overridable methods for resources:
build_resource
andfind_resource
- Translatable title (#17)
Bug fixes
- Fixes a bug where the wrong template would be picked (#39)
- Fixes a bug so the resolver works with namespaces templates.
- Fixes an autoloading issue (#60)
- Godmin rescues
NotAuthorizedError
and returns a 403 Forbidden HTTP status.
Other
- Cleaned up generators (#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 (#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 (#26)
- Adds redirect hooks (#27)
- Replaces kaminari
Bug fixes
- Form fallbacks to regular input instead of association. (#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.