sunrise-cms 0.6.0 → 0.6.1
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/CHANGELOG.rdoc +5 -0
- data/README.md +8 -0
- data/app/controllers/sunrise/dashboard_controller.rb +1 -1
- data/app/controllers/sunrise/manager_controller.rb +1 -1
- data/app/views/sunrise/manager/buttons/_sort.html.erb +1 -1
- data/config/locales/sunrise/en.yml +3 -0
- data/config/locales/sunrise/ru.yml +3 -0
- data/config/locales/sunrise/uk.yml +3 -0
- data/lib/generators/sunrise/install_generator.rb +1 -1
- data/lib/generators/sunrise/templates/config/{sunrise.rb → active_record/sunrise.rb} +6 -6
- data/lib/generators/sunrise/templates/config/mongoid/sunrise.rb +51 -0
- data/lib/generators/sunrise/templates/config/nginx-config +5 -37
- data/lib/generators/sunrise/templates/models/mongoid/structure.rb +4 -4
- data/lib/sunrise/abstract_model.rb +20 -11
- data/lib/sunrise/version.rb +1 -1
- data/lib/sunrise.rb +9 -1
- data/spec/dummy/log/test.log +7653 -0
- data/spec/models/sunrise/abstract_model_spec.rb +8 -0
- metadata +4 -3
@@ -52,6 +52,14 @@ describe Sunrise::AbstractModel do
|
|
52
52
|
model = Sunrise::Utils.get_model("structures", {:view => 'table'})
|
53
53
|
model.current_list.should == :table
|
54
54
|
end
|
55
|
+
|
56
|
+
it "should destroy all items" do
|
57
|
+
@structure = FactoryGirl.create(:structure_page)
|
58
|
+
|
59
|
+
lambda {
|
60
|
+
@abstract_model.destroy_all({:ids => [@structure.id]})
|
61
|
+
}.should change { Structure.count }.by(-1)
|
62
|
+
end
|
55
63
|
end
|
56
64
|
end
|
57
65
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunrise-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-02-
|
13
|
+
date: 2013-02-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -526,7 +526,8 @@ files:
|
|
526
526
|
- lib/generators/sunrise/templates/spec/controllers/welcome_controller_spec.rb
|
527
527
|
- lib/generators/sunrise/templates/config/database.yml
|
528
528
|
- lib/generators/sunrise/templates/config/nginx-config
|
529
|
-
- lib/generators/sunrise/templates/config/sunrise.rb
|
529
|
+
- lib/generators/sunrise/templates/config/active_record/sunrise.rb
|
530
|
+
- lib/generators/sunrise/templates/config/mongoid/sunrise.rb
|
530
531
|
- lib/generators/sunrise/templates/config/logrotate-config
|
531
532
|
- lib/generators/sunrise/templates/config/seeds.rb
|
532
533
|
- lib/generators/sunrise/templates/views/layouts/application.html.erb
|