comfortable_mexican_sofa 1.2.7 → 1.2.8

Sign up to get free protection for your applications and to get access to all the features.
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 in Sofa's initializer: `ComfortableMexicanSofa::ViewHooks.add(:navigation, '/admin/navigation')`. Similarly you can add extra stylesheets, etc into admin area in the same way.
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.7
1
+ 1.2.8
@@ -2,9 +2,9 @@ class Cms::Layout < ActiveRecord::Base
2
2
 
3
3
  set_table_name :cms_layouts
4
4
 
5
- acts_as_tree
6
- is_mirrored
7
- has_revisions_for :content, :css, :js
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
@@ -2,9 +2,9 @@ class Cms::Page < ActiveRecord::Base
2
2
 
3
3
  set_table_name :cms_pages
4
4
 
5
- acts_as_tree :counter_cache => :children_count
6
- is_mirrored
7
- has_revisions_for :blocks_attributes
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
@@ -1,8 +1,8 @@
1
1
  class Cms::Snippet < ActiveRecord::Base
2
2
 
3
3
  set_table_name :cms_snippets
4
- is_mirrored
5
- has_revisions_for :content
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.7"
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-04}
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 = [
@@ -5,7 +5,7 @@ module ComfortableMexicanSofa::ActsAsTree
5
5
  end
6
6
 
7
7
  module ClassMethods
8
- def acts_as_tree(options = {})
8
+ def cms_acts_as_tree(options = {})
9
9
  configuration = {
10
10
  :foreign_key => 'parent_id',
11
11
  :order => nil,
@@ -6,7 +6,7 @@ module ComfortableMexicanSofa::HasRevisions
6
6
 
7
7
  module ClassMethods
8
8
 
9
- def has_revisions_for(*fields)
9
+ def cms_has_revisions_for(*fields)
10
10
 
11
11
  include ComfortableMexicanSofa::HasRevisions::InstanceMethods
12
12
 
@@ -6,7 +6,7 @@ module ComfortableMexicanSofa::IsMirrored
6
6
 
7
7
  module ClassMethods
8
8
 
9
- def is_mirrored
9
+ def cms_is_mirrored
10
10
  if ComfortableMexicanSofa.config.enable_mirror_sites
11
11
  include ComfortableMexicanSofa::IsMirrored::InstanceMethods
12
12
 
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.7
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-04 00:00:00 Z
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: -45372711509925619
321
+ hash: -2002714519629523177
322
322
  segments:
323
323
  - 0
324
324
  version: "0"