comfortable_mexican_sofa 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/app/models/cms/layout.rb +3 -3
- data/app/models/cms/page.rb +3 -3
- data/app/models/cms/snippet.rb +2 -2
- data/comfortable_mexican_sofa.gemspec +2 -2
- data/lib/comfortable_mexican_sofa/acts_as_tree.rb +1 -1
- data/lib/comfortable_mexican_sofa/has_revisions.rb +1 -1
- data/lib/comfortable_mexican_sofa/is_mirrored.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -128,7 +128,7 @@ If you wish, you can re-use Sofa's admin area for things you need to administer
|
|
|
128
128
|
|
|
129
129
|
From your views you can use `cms_form_for` method to re-use Sofa's FormBuilder. There are also some existing styles for tables, will\_paginate helpers, etc. Take a look in [/public/stylesheets/comfortable\_mexican\_sofa/content.css](https://github.com/twg/comfortable-mexican-sofa/blob/master/public/stylesheets/comfortable_mexican_sofa/content.css)
|
|
130
130
|
|
|
131
|
-
You will probably want to add a navigation link on the left side, and for that you will want to use ViewHook functionality. Create a partial that has a link to your admin area and declare in
|
|
131
|
+
You will probably want to add a navigation link on the left side, and for that you will want to use ViewHook functionality. Create a partial that has a link to your admin area and declare in Sofa's initializer: `ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/navigation')`. Similarly you can add extra stylesheets, etc into admin area in the same way.
|
|
132
132
|
|
|
133
133
|
Do you have other authentication system in place (like Devise, AuthLogic, etc) and wish to use that? For that, you will need to create a module that does the authentication check and make ComfortableMexicanSofa use it. For example:
|
|
134
134
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.8
|
data/app/models/cms/layout.rb
CHANGED
|
@@ -2,9 +2,9 @@ class Cms::Layout < ActiveRecord::Base
|
|
|
2
2
|
|
|
3
3
|
set_table_name :cms_layouts
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
cms_acts_as_tree
|
|
6
|
+
cms_is_mirrored
|
|
7
|
+
cms_has_revisions_for :content, :css, :js
|
|
8
8
|
|
|
9
9
|
# -- Relationships --------------------------------------------------------
|
|
10
10
|
belongs_to :site
|
data/app/models/cms/page.rb
CHANGED
|
@@ -2,9 +2,9 @@ class Cms::Page < ActiveRecord::Base
|
|
|
2
2
|
|
|
3
3
|
set_table_name :cms_pages
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
cms_acts_as_tree :counter_cache => :children_count
|
|
6
|
+
cms_is_mirrored
|
|
7
|
+
cms_has_revisions_for :blocks_attributes
|
|
8
8
|
|
|
9
9
|
attr_accessor :tags,
|
|
10
10
|
:blocks_attributes_changed
|
data/app/models/cms/snippet.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
class Cms::Snippet < ActiveRecord::Base
|
|
2
2
|
|
|
3
3
|
set_table_name :cms_snippets
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
cms_is_mirrored
|
|
5
|
+
cms_has_revisions_for :content
|
|
6
6
|
|
|
7
7
|
# -- Relationships --------------------------------------------------------
|
|
8
8
|
belongs_to :site
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{comfortable_mexican_sofa}
|
|
8
|
-
s.version = "1.2.
|
|
8
|
+
s.version = "1.2.8"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Oleg Khabarov", "The Working Group Inc"]
|
|
12
|
-
s.date = %q{2011-06-
|
|
12
|
+
s.date = %q{2011-06-13}
|
|
13
13
|
s.description = %q{}
|
|
14
14
|
s.email = %q{oleg@theworkinggroup.ca}
|
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: comfortable_mexican_sofa
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 1.2.
|
|
5
|
+
version: 1.2.8
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Oleg Khabarov
|
|
@@ -11,7 +11,7 @@ autorequire:
|
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
13
|
|
|
14
|
-
date: 2011-06-
|
|
14
|
+
date: 2011-06-13 00:00:00 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rails
|
|
@@ -318,7 +318,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
318
318
|
requirements:
|
|
319
319
|
- - ">="
|
|
320
320
|
- !ruby/object:Gem::Version
|
|
321
|
-
hash: -
|
|
321
|
+
hash: -2002714519629523177
|
|
322
322
|
segments:
|
|
323
323
|
- 0
|
|
324
324
|
version: "0"
|