Releases: comfy/comfortable-mexican-sofa
Releases · comfy/comfortable-mexican-sofa
1.12.8
1.12.7
1.12.5
- Thanks to Roman Almeida (@nasmorn) now we have Redactor OEM license. This allows me to replace tinyMCE with Redactor. Normally it would cost at least 99 bucks to integrate it in your project. Now you're getting it for free. It's smaller, easier to extend. It's also hooked up to existing i18n support. It also comes with image/file manager out the box. Of course you can always use whatever wysiwyg editor you want.
- Restructured assets folder. You might need to adjust things if you were overriding default assets.
- Should work now with turbolinks enabled installs
- Made fixtures sync happen only when index actions are triggered. Should decrease unnecessary churn.
1.12.4 - Rails 4.2 release
- Making everything work with Rails 4.2
- small fixes
1.12.3
- The file widget is dead. Long live the file widget. Now with more pagination, more drag-and-drop with better feedback. Can be opened by clicking on the icon on the 'Files' navigation link.
- Uploading is handled via
plupload
so there's a new dependency. - Run
rails g cms
or plugMime::Type.register 'text/plupload', :plupload
into yourconfig/initializers/mime_types.rb
- Uploading is handled via
- There are new rails generators available:
rails g comfy:cms:views
- copy all cms view templates to your application. Now you can change if you want wysiwyg or normal text for snippets yourself. It's back to plain text by default, by the way.rails g comfy:cms:controllers
- copy all cms controllers to your application.rails g comfy:cms:models
- copy all cms models to your application.rails g comfy:cms:assets
- copy all cms js, css and image files to your application.
- Small change how defining categories in fixtures works. Categories you define directly on Pages, for example, are only linkages. You need to have those categories defined in
categories/pages.yml
first. - Now there's a new authorization functionality. See
config.admin_authorization = 'ComfyAdminAuthorization'
. Just create a module withauthorize
method and put all your logic there. You'll have access to params and instance variables relevant to a given controller. For example:
module ComfyAdminAuthorization
def authorize
if params[:controller] == 'comfy/admin/cms/layouts' && !current_user.is_admin?
flash[:error] = "Bug off, only admins can change layouts"
redirect_to admin_root_path
end
end
end
- Plus few more small fixes and improvements.
1.12.2
1.12.1
1.12.0
- When upgrading please create and run migration: https://raw.githubusercontent.com/comfy/comfortable-mexican-sofa/master/db/upgrade_migrations/08_upgrade_to_1_12_0.rb
- Wysihtml5 is out and TinyMCE 4 is in.
tinymce-rails
is a new dependency. You still have option of switching it out for whatever you want. - Bootstrap 3.1 is in.
bootstrap-sass
is a new dependency. formatted_form
is out andbootstrap_form
is in. See https://github.com/bootstrap-ruby/rails-bootstrap-forms on how to use it.- Everything is under
Comfy::
namespace. Models, controllers and even routes. Where you hadCms::Page
now you haveComfy::Cms::Page
- Due to class name changes please check Paperclip paths. You might need to move files, or redefine Paperclip configs.
- Admin and public base controllers are
Comfy::Admin::Cms::BaseController
andComfy::Cms::BaseController
- View helpers have new names:
cms_snippet_content
,cms_snippet_render
,cms_block_content
,cms_block_content_render
andcms_block_render
. See here for more details: https://github.com/comfy/comfortable-mexican-sofa/blob/master/lib/comfortable_mexican_sofa/view_methods.rb - Page blocks functionality is extracted into
cms_manageable
. See how you can make your own models act as cms pages: #409 - Better revision comparison with diffs.