- Fixed search not evolving correctly types for embedded relation criteria.
- Fixed defaults
unscoped
showing delete elements withMongoid::Paranoia
- Using helpers instead of writing directly html
- Defaults
unscoped
andincludes
for create_collection - Resource_attribute_names includes embedded documents, enabling search
- Removed
hooks
dependency - Removed
o
helper, only usingiordh
- Simplified field_value for arrays, from
attr: { attrs: [] }
toattrs: []
- Search empty value now also search for nil
- API change!
- All CRUD bang methods have been removed
- CRUD methods now calling
action_
resource oraction_
collection for personalization
- Improved iterable
- Added Iterable module
- Fixed link as proc / lambda not working
- Added more standard support for search operators like and equal
link
can now optionally be called too- Bugfix in search
link
attribute now accepts Proc objects forlabel
andurl
- Some code improvements on search
- Added search method module
- Added sort methods for resource attributes
- Added paginate
- Added hooks for create / update / destroy methods
- Correctly handling form-oriented attributes validation
- Improved the request path, to calculate the route methods
- Using
params[:action]
andparams[:format]
to sanitize the request path - Replaced
:label
by:as
for form-oriented attributes
- Added
Iord::Defaults
- Added
before_set_resource
hook Iord::Json
now works withIord::Nested
- Added more customization in crud actions
- Added module
Iord::Nested
to handle nested resources
- Correclty handling singleton resources
- Added
has_collection?
to handle correctly singleton resource. - Added
form_resource_url
- Added
json_show_attrs
andjson_index_attrs
to specialize attributes for json. These methods default toshow_attrs
andindex_attrs
. - Fixed Iord::OutputHelper.image and its call in Iord::Field.
- Added key
:as
for display-oriented attributes to override the field name. - Added
json_attrs
as shortcut for bothjson_***_attrs
methods. - Fixed hazardous value retrieving in field_name.
- Added JSON support, can be enabled by including Iord::Json module.
- Fixed field name not humanized
- Fixed resource_actions methods
- Added id as permitted attribute by default
- Fixed error when adding a response format
- Completed the deletation to crud_response_format
- i18n flash
- Changed error display
- Fixed edit_resource_url returning always the same value
- Added Iord::HtmlHelper accessible via iordh to generate html
- Updated README with some information on the project.
- Prepending a
view_paths
when using Iord::GenericController. This permits to define a route likeresources :clients, controller: 'iord/generic'
and still customize views underapp/views/clients
. - Remove usage of Mongoid constants to detect relation. Now based on attribute name
- Removed partial json handling. Will move this code to another gem someday
- Added i18n
- Added generators
- Fixed update CRUD method raising on validation error
- Initial release