- [BREAKING] Removed Outpost::Hook
- Fixed datetime text input to use correct timezone
- Use
Time.zone.now
instead ofTime.now
- Add vendor/ to gem files.
- Added vendor/assets/javascripts to config.assets.paths
- [BREAKING] Outpost now provides routes via mount. To use it, add it above your
outpost
namespace in your routes file. This mount is required by Outpost. To use it, add in your routes:
Rails.application.routes.draw do
# ...
# ADD THIS LINE
mount Outpost::Engine, at: "outpost"
namespace :outpost do
resources :posts
# Add outpost-specific 404 pages.
# This must be at the very bottom of the namespace.
get "*path" => 'errors#not_found'
end
end
You may then remove the root
, logout
, login
, and sessions
routes, as Outpost provides them for you. If you're using a bunch of custom code which still references outpost_root_path
, for example, you can leave the old routes in place, but you still need to add the mount.
- Added optional
template_prefix
argument torender_error
. - Removed
outpost_model
from Permission.
- Added
route_proxy
helper to controllers. This was originally to get around a kaminari bug, but can be useful for other reasons.
- Added the ability to specify options when declaring outpost model:
class Article < ActiveRecord::Base
outpost_model public_route_key: "article"
# ...
end
- Bootstrap typeahead is now included in javascript by default. It is recommended that you just override the included javascripts.
- Add some basic default column stying.
- Smarter building of filter options.
- Logo is now always an image. Override assets/images/outpost/logo.png to customize it.
- Fixed bcrypt-ruby dependency versions.
- Fix error when Permissions aren't being used. This is a wip, as Permissions will eventually be totally optional.
- Deprecated
ROUTE_KEY
for defining the public route path helper keys. Useself.public_route_key = "..."
instead.
- Added
utilities.js
, which will include some utilities functions to use on various pages. First one ispreventEnterFromSubmittingForm()
. - Added
new_obj_key
class method to Identifier module.news_story-new
- Added a bunch of functions to Notifications.
- Added
FormBuilder#full_errors
, which renders full error messages for an attribute in an ALERT div. This is useful for when you have a validation on an attribute, but don't actually have a field for that attribute in the model, so simple_form can't attach the error to any field.
- Update bcrypt-ruby dependency to
>= 3.0.0
to support Rails 4.1 - Minor style tweaks
- [BREAKING] Changed the obj_key format to be url-safe. New format is
news_story-999
. - [BREAKING]
sort_mode_icon
helper renamed todirection_icon
- [BREAKING]
switch_sort_mode
helper renamed toswitch_direction
- [BREAKING]
order
helper renamed toorder_attribute
- [BREAKING]
sort_mode
helper renamed toorder_direction
- [BREAKING]
order
helper now returns a contatenation oforder_attribute
andorder_direction
. - [BREAKING] Moves ordering helpers into
controller/ordering.rb
- [BREAKING]
Column#default_sort_mode
renamed todefault_order_direction
- [BREAKING]
List#default_sort_mode
renamed todefault_order_direction
- [BREAKING]
List#default_order
renamed todefault_order_attribute
- [BREAKING] Renamed default preferences:
sort_mode
->order_direction
,order
->order_attribute
- [BREAKING] Order directions are now in CAPS (ASC, DESC)
- Changed text on Delete button to keep it from being Bui'd.
- List Helpers can now accept two arguments: The attribute value, and the record. If your list helper only accepts one argument, then only the attribute value will be passed in. If it accepts a second argument, the record will also be passed in.
- Register an event handler on content forms and submit buttons which prevents the form from being submitted twice by double-click. Add class
js-content-form
to your form and classjs-submit-btns
to the div wrapping the submit buttons to activate. This is turned on by default.
- None
- Removed bootstrap-tooltip.
- Add
render_json
utility helper method, for rendering jbuilder templates as raw JSON objects. - Added *_url methods for routing. Now you can call, for example,
admin_edit_url
, which delegates to theoutpost_model_name_url
method, just like theadmin_edit_path
method. - Added routing aliases for
create
,update
, anddestroy
. Now you can call, for example,PUT object.admin_update_path
.
- Rename gem to
outpost-cms
. The module is stillOutpost
. - Remove multipart from new form. Need to add a way to specify multipart without overwriting the entire partial.
render_error
no longer returns false.per_page = :all
is removed because Kaminari reverted this feature.
- Use
update_column
for updating a user's last_login, so it doesn't generate a version in Secretary.
- Deprecated
link_path
- replaced withpublic_path
- Deprecated
remote_link_path
- replaced withpublic_url