browsercms 3.5.0.rc1 → 3.5.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/cms/page_route.rb +2 -2
- data/app/models/cms/view_context.rb +3 -0
- data/doc/release_notes.md +23 -1
- data/lib/cms/version.rb +1 -1
- metadata +2 -2
@@ -21,8 +21,8 @@ class Cms::PageRoute < ActiveRecord::Base
|
|
21
21
|
has_many :conditions, :class_name => 'Cms::PageRouteCondition'
|
22
22
|
has_many :requirements, :class_name => 'Cms::PageRouteRequirement'
|
23
23
|
|
24
|
-
|
25
|
-
|
24
|
+
attr_accessible :name, :pattern, :code, :page_id, :page
|
25
|
+
|
26
26
|
validates_presence_of :pattern, :page_id
|
27
27
|
validates_uniqueness_of :pattern
|
28
28
|
|
@@ -29,6 +29,9 @@ module Cms
|
|
29
29
|
# Make all Route helpers available in the view, i.e. cms_xyz_path and cms_xyz_url
|
30
30
|
self.class.send(:include, Cms::Engine.routes.url_helpers)
|
31
31
|
|
32
|
+
# Need to add Cms::PageRoute helpers to the view
|
33
|
+
self.class.send(:include, Rails.application.routes.url_helpers)
|
34
|
+
|
32
35
|
# See what values are getting copied into template
|
33
36
|
# Rails.logger.warn "Assigned these variables: #{attributes_to_assign}"
|
34
37
|
|
data/doc/release_notes.md
CHANGED
@@ -1,4 +1,26 @@
|
|
1
|
-
v3.5.0
|
1
|
+
v3.5.0.rc2
|
2
|
+
==========
|
3
|
+
|
4
|
+
* Fixed issue where named page routes couldn't be found in portlet views
|
5
|
+
* Fixed issue where page routes can't be created in seed data.
|
6
|
+
* Confirmed that X-Sendfile works
|
7
|
+
|
8
|
+
X-Sendfile
|
9
|
+
----------
|
10
|
+
|
11
|
+
One way to improve the performance of BrowserCMS is to enable X-Sendfile. Used in conjunction with Web servers like Apache and Nginx, X-Sendfile will allow web servers to handle serving files that have been uploaded into the CMS. Web servers are very well optimized for sending static files, and doing so takes load off the Ruby processes reducing bottlenecks.
|
12
|
+
|
13
|
+
To enable X-Sendfile in your application, uncomment one of the following two lines depending on which web server you are using.
|
14
|
+
|
15
|
+
```
|
16
|
+
# In config/environments/production.rb
|
17
|
+
config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
|
18
|
+
config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
19
|
+
```
|
20
|
+
|
21
|
+
You will then need to configure your web server to handle X-Sendfile requests. See documentation for [Apache](https://tn123.org/mod_xsendfile/) and [Nginx](http://wiki.nginx.org/XSendfile) for details.
|
22
|
+
|
23
|
+
v3.5.0.rc1
|
2
24
|
======
|
3
25
|
|
4
26
|
This release includes a number of new features, including:
|
data/lib/cms/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browsercms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.0.
|
4
|
+
version: 3.5.0.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|