New layout, new features.
How to upgrade
If you are coming from version 0.0.8.beta.3 please follow this steps:
- Add migration:
$ rails generate migration addVideoToBindaAssets def change
add_column :binda_assets, :type, :string
add_column :binda_assets, :video, :string
end
- Run migration and the following task
$ rails db:migrateBe aware that Binda::Asset doesn't have a ImageUploader anymore, which as been moved to Binda::Image. The following helpers has_image, get_image_url, get_image_path have been updated. Also note that Binda stores images into asset folder so you might need to update your upload directory renaming it from asset to image.
Image large and medium version have been removed from image uploader. This is due to GIF generating memory leaks on production servers. This issue hasn't been totally solve, might be worth doing further investigation, possibly moving GIFs to another uploader. Please update your code accordingly.
- Create migration for Relation field.
rails generate migration CreateBindaRelationcreate_table :binda_relations do |t|
t.integer :field_setting_id
t.references :fieldable, polymorphic: true, index: true
end
create_table :binda_relation_links do |t|
t.references :owner, polymorphic: true, index: true
t.references :dependent, polymorphic: true, index: true
t.timestamps
endNow it's possible to update videos:
rails binda:add_video_feature
- Check that you have setup a
binda_field_settings_structurestable. If you havent, please add it to the current migration.
create_table :binda_field_settings_structures do |t|
t.belongs_to :field_setting
t.belongs_to :structure
end- Add a migration for the preview
$ rails generate migration addPreviewModify the migration file with these lines:
def change
add_column :binda_structures, :has_preview, :boolean, default: false
endRun migrations
$ rails db:migrate- If you don't have
app/models/b.rbfile, run the following command:
$ rails generate model B --no-migration --parent=::Binda::BNew Features
- Complete new skin, not totally polished yet, but sufficient
- Preview link for components
- Video field
- Default helpers available through the
Bclass
Updates
- sorting components has been extracted to a specific page, also limited to 1000 entries.
- add documentation badge
- add test coverage
- components postion is set on
after_saverather then incomponets#create - update layout of index and sort components
- Add loader/warning for components sort index
- Remove jQuery File Upload plugin and created a custom one
- Remove tests about generators
- Add Select2 plugin
FIX
Infinite number of fixes