Releases: codn/adminpanel
Releases · codn/adminpanel
2.5.4
Should have been 2.6
but anyway, here's how to upgrade from 2.5.3
and down.
- Add
Friendly
concern. - Renamed
belongs_to
toselect
and instead of model you give an ActiveRecord::Relation (Model.all) - Renamed
has_many
tocheckbox
and instead of model you give an ActiveRecord::Relation (Model.all)
To upgrade from 2.5.x
- Change
def self.form_fields
attributes with'type' => 'belongs_to'
to'type' => 'select'
- Change
def self.form_fields
attributes with'type' => 'has_many'
to'type' => 'checkbox'
- Change
def self.form_fields
attributes with'model' => 'Adminpanel::AnyModel'
to:
'options' => Proc.new { |object|
Adminpanel::AnyModel.all # you can call scopes too, or even use the object for customizing the scope
}
2.5.3
- Friendly id support.
2.5.1
Fix bug that didn't let adminpanel initialize from scratch.
2.5.2
Fix bug that didn't let adminpanel generate a resource with double wysiwyg.
2.5.0
- Add custom errors generator.
- Send fresh cache header on index.
- Sortable by drag & drop.
- 🔥 Remove categories custom templates, and don't generate it's template when initializing.
- Add drag and drop to sortable things.
Migration instructions from 2.4.x
- Rename all include Adminpanel::Galleryzation to include Adminpanel::SortableGallery
- Galleryfiles have to include Adminpanel::Base even if they aren't including SortableGallery
2.4.3
- Show section images.
- Icons with titles
2.4.2
- Fixed an issue with the file filed
2.4.1
- Fix dump with carrierwave fields.
- Add "add another" button in show.
- Add support for custom fields in contact generator.
2.4.0
Migration instructions from 2.3.x
Add order
(integer) to adminpanel_sections
table.
2.3.1
- collection_name
2.3.0
- Default image processor is now minimagick
- Fixed an issue where publishing a tweet with only the link would fail.
- Add contact generator.
- Add dump generator.
- Add sortable concern.
- 🐛 🐛 🐛
Migrating instructions from 2.2.5 to 2.3.0:
- Change your
:rol
to:roles
adminpanel_setup.rb
file if you have it in yourdisplayable_resources
. - Change your uploaders
RMagick
forMiniMagick
- Rename table
adminpanel_rol
toadminpanel_roles
- Rename table
adminpanel_images
toadminpanel_sectionfiles
- Rename attribute
adminpanel_users.rol_id
toadminpanel_users.role_id
- Rename attribute
adminpanel_permissions.rol_id
toadminpanel_permissions.role_id
- Add integer column
max_files
with default 0, toadminpanel_sections
- Update your precompiled to not include the old adminapnel assets since now they are precompiled by default.
- Precompile assets
- Default gallery model is removed, please use Adminpanel::Sortable concern.
2.2.5
- 🐛