-
Notifications
You must be signed in to change notification settings - Fork 215
What's New In 3.6.0
Before 3.6.0 to choose a datepicker type we used :helper_style
in column definitions and Wice::Defaults:HELPER_STYLE
in the configuration_file.
In 3.6.0 :helper_style
and Wice::Defaults:HELPER_STYLE
are gone.
Now each datepicker is simply a separate filter type, and to pick a datepicker we can use :filter_type
, just like other filter types are chosen.
Filter types for dates and datetimes are
:rails_datetime_helper
:rails_date_helper
:jquery_datepicker
:bootstrap_datepicker
Default filter types for date and datetime columns are set by Wice::Defaults:DEFAULT_FILTER_FOR_DATE
and Wice::Defaults:DEFAULT_FILTER_FOR_DATETIME
.
Blockless columns used to only work for the main model. Now they can be used for joined tables, too.
Instead of
g.column name: 'Priority', attribute: 'name', assoc: :priority do |task|
task.priority.name if task.priority
end
you can write
g.column name: 'Priority', attribute: 'name', assoc: :priority
Instead of
g.column name: 'Customer', attribute: 'name', assoc: [:project, :customer] do |task|
task.project.customer.name if task.project && task.project.customer
end
you can write
g.column name: 'Customer', attribute: 'name', assoc: [:project, :customer]
There are no more icons inside of the gem. Instead, Font Awesome is used.
CSS is no longer copied to the applications asset directory. Instead the user is supposed to add
@import "wice_grid"
to application.scss
.
Setting a configuration value in Wice::Defaults::STRING_MATCHING_OPERATORS to CI_LIKE will result in the following SQL generated for string filters:
UPPER(table.field) LIKE UPPER(?)"
New USE_DEFAULT_SCOPE
configuration value from @nathanvda.
By default ActiveRecord calls are always executed inside Model.unscoped{}
.
Setting USE_DEFAULT_SCOPE
to true
will use the default scope for all queries.
© Yuri Leikind