refinerycms 0.9.8.5 → 0.9.8.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data/Gemfile +15 -21
  2. data/bin/refinerycms +9 -12
  3. data/changelog.md +164 -154
  4. data/db/migrate/20100913234704_create_refinery_schema.rb +151 -0
  5. data/db/migrate/20100926142529_add_value_type_to_refinery_settings.rb +9 -0
  6. data/db/migrate/20100929035252_add_missing_indexes_to_roles_users.rb +11 -0
  7. data/db/schema.rb +5 -1
  8. data/db/seeds/pages.rb +0 -39
  9. data/db/seeds/pages_for_inquiries.rb +40 -0
  10. data/vendor/refinerycms/authentication/app/models/roles_users.rb +6 -0
  11. data/vendor/refinerycms/authentication/features/lost_password.feature +1 -0
  12. data/vendor/refinerycms/authentication/features/manage_users.feature +1 -1
  13. data/vendor/refinerycms/authentication/features/step_definitions/lost_password.rb +2 -2
  14. data/vendor/refinerycms/authentication/features/support/factories.rb +1 -0
  15. data/vendor/refinerycms/authentication/spec/models/user_spec.rb +52 -0
  16. data/vendor/refinerycms/core/app/views/admin/_head.html.erb +1 -4
  17. data/vendor/refinerycms/core/app/views/shared/_menu.html.erb +11 -5
  18. data/vendor/refinerycms/core/app/views/shared/_menu_branch.html.erb +8 -8
  19. data/vendor/refinerycms/core/app/views/shared/admin/_make_sortable.html.erb +3 -2
  20. data/vendor/refinerycms/core/app/views/shared/admin/_sortable_list.html.erb +2 -3
  21. data/vendor/refinerycms/core/lib/core.rb +5 -5
  22. data/vendor/refinerycms/core/lib/generators/refinery_engine/refinery_engine_generator.rb +2 -2
  23. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/app/views/admin/plural_name/index.html.erb +11 -9
  24. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/db/seeds/plural_name.rb +1 -1
  25. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/generators/refinerycms_plural_name_generator.rb +3 -3
  26. data/vendor/refinerycms/core/lib/generators/refinery_engine/templates/lib/plural_name.rb +1 -1
  27. data/vendor/refinerycms/core/lib/refinery/crud.rb +48 -28
  28. data/vendor/refinerycms/core/lib/refinery/helpers/menu_helper.rb +34 -4
  29. data/vendor/refinerycms/core/lib/refinery/plugin.rb +5 -5
  30. data/vendor/refinerycms/core/public/javascripts/rails.js +152 -0
  31. data/vendor/refinerycms/core/public/javascripts/refinery/admin.js +33 -13
  32. data/vendor/refinerycms/core/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +191 -175
  33. data/vendor/refinerycms/core/public/stylesheets/refinery/refinery.css +80 -12
  34. data/vendor/refinerycms/dashboard/features/dashboard.feature +3 -1
  35. data/vendor/refinerycms/images/features/support/factories.rb +5 -0
  36. data/vendor/refinerycms/images/lib/images.rb +7 -35
  37. data/vendor/refinerycms/images/spec/models/image_spec.rb +50 -0
  38. data/vendor/refinerycms/images/spec/uploads/beach.jpeg +0 -0
  39. data/vendor/refinerycms/pages/features/manage_pages.feature +1 -1
  40. data/vendor/refinerycms/pages/features/step_definitions/page_steps.rb +19 -3
  41. data/vendor/refinerycms/pages/features/support/paths.rb +9 -1
  42. data/vendor/refinerycms/pages/features/visit_pages.feature +45 -0
  43. data/vendor/refinerycms/pages/spec/models/page_spec.rb +134 -4
  44. data/vendor/refinerycms/refinery.rb +1 -1
  45. data/vendor/refinerycms/resources/features/manage_files.feature +5 -1
  46. data/vendor/refinerycms/resources/features/step_definitions/file_steps.rb +2 -2
  47. data/vendor/refinerycms/resources/lib/resources.rb +8 -37
  48. data/vendor/refinerycms/resources/spec/models/resource_spec.rb +45 -0
  49. data/vendor/refinerycms/resources/spec/uploads/refinery_is_awesome.txt +1 -0
  50. data/vendor/refinerycms/settings/app/models/refinery_setting.rb +26 -12
  51. data/vendor/refinerycms/settings/features/manage_refinery_settings.feature +1 -1
  52. data/vendor/refinerycms/settings/spec/models/refinery_setting_spec.rb +101 -0
  53. metadata +37 -56
  54. data/db/migrate/20091109012126_add_missing_indexes.rb +0 -25
  55. data/db/migrate/20091130040711_add_down_for_maintenance_page.rb +0 -15
  56. data/db/migrate/20091207033335_add_superuser_to_users.rb +0 -12
  57. data/db/migrate/20100114092849_add_themes_table.rb +0 -19
  58. data/db/migrate/20100125003944_rename_title_to_name_on_user_plugins.rb +0 -9
  59. data/db/migrate/20100125033146_migrate_old_plugin_titles_to_plugin_names_for_users.rb +0 -61
  60. data/db/migrate/20100127004649_add_reset_code_to_users.rb +0 -9
  61. data/db/migrate/20100202034802_remove_custom_title_image_id_and_image_id_from_pages.rb +0 -13
  62. data/db/migrate/20100204011654_change_part_titles_to_titleized_version_for_new_format.rb +0 -13
  63. data/db/migrate/20100223211536_remove_themes_table.rb +0 -17
  64. data/db/migrate/20100305023036_change_users_columns_for_authlogic.rb +0 -54
  65. data/db/migrate/20100305023037_remove_unused_users_columns.rb +0 -15
  66. data/db/migrate/20100312155331_make_user_perishable_token_nullable.rb +0 -13
  67. data/db/migrate/20100312160327_make_user_persistence_token_nullable.rb +0 -13
  68. data/db/migrate/20100315203301_remove_state_from_users.rb +0 -9
  69. data/db/migrate/20100419001048_change_image_grid_thumbnail_size_and_regenerate.rb +0 -13
  70. data/db/migrate/20100522020225_rename_permissions_for_resources_plugin_to_files.rb +0 -15
  71. data/db/migrate/20100525084518_remove_take_down_for_maintenance_page.rb +0 -19
  72. data/db/migrate/20100525110237_add_small_and_large_thumbnail_sizes.rb +0 -14
  73. data/db/migrate/20100530205942_update_link_url_on_pages_from_inquiries_new_to_contact.rb +0 -31
  74. data/db/migrate/20100605132138_convert_resource_to_dragonfly.rb +0 -41
  75. data/db/migrate/20100605132208_convert_image_to_dragonfly.rb +0 -51
  76. data/db/migrate/20100606135207_change_thumbnail_sizes_for_dragonfly.rb +0 -17
  77. data/db/migrate/20100608062447_add_scoping_to_refinery_settings.rb +0 -9
  78. data/db/migrate/20100623220402_add_restricted_to_refinery_settings.rb +0 -9
  79. data/db/migrate/20100624024501_add_roles.rb +0 -24
  80. data/db/migrate/20100629081543_add_callback_proc_as_string_to_refinery_settings.rb +0 -9
  81. data/db/migrate/20100701053151_remove_superuser_from_users.rb +0 -20
  82. data/db/migrate/20100702022630_add_spam_to_inquiries.rb +0 -11
  83. data/db/migrate/20100708014636_ensure_user_plugins_use_name_and_not_title.rb +0 -9
  84. data/db/migrate/20100729221735_remove_page_translations_if_present.rb +0 -12
  85. data/db/migrate/20100826232810_move_inquiry_settings_to_refinery_settings.rb +0 -23
  86. data/db/migrate/20100831122919_move_page_to_nested_set.rb +0 -28
  87. data/db/migrate/20100913234704_add_cached_slug_to_pages.rb +0 -12
  88. data/db/seeds/inquiry_settings.rb +0 -2
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- hash: 45
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 9
9
8
  - 8
10
- - 5
11
- version: 0.9.8.5
9
+ - 6
10
+ version: 0.9.8.6
12
11
  platform: ruby
13
12
  authors:
14
13
  - Resolve Digital
@@ -18,7 +17,7 @@ autorequire:
18
17
  bindir: bin
19
18
  cert_chain: []
20
19
 
21
- date: 2010-09-21 00:00:00 +12:00
20
+ date: 2010-12-03 00:00:00 +13:00
22
21
  default_executable:
23
22
  dependencies:
24
23
  - !ruby/object:Gem::Dependency
@@ -29,12 +28,11 @@ dependencies:
29
28
  requirements:
30
29
  - - ~>
31
30
  - !ruby/object:Gem::Version
32
- hash: 7
33
31
  segments:
34
32
  - 3
35
33
  - 0
36
- - 0
37
- version: 3.0.0
34
+ - 3
35
+ version: 3.0.3
38
36
  type: :runtime
39
37
  version_requirements: *id001
40
38
  - !ruby/object:Gem::Dependency
@@ -45,7 +43,6 @@ dependencies:
45
43
  requirements:
46
44
  - - ~>
47
45
  - !ruby/object:Gem::Version
48
- hash: 23
49
46
  segments:
50
47
  - 1
51
48
  - 0
@@ -61,7 +58,6 @@ dependencies:
61
58
  requirements:
62
59
  - - "="
63
60
  - !ruby/object:Gem::Version
64
- hash: 113
65
61
  segments:
66
62
  - 1
67
63
  - 4
@@ -78,7 +74,6 @@ dependencies:
78
74
  requirements:
79
75
  - - ~>
80
76
  - !ruby/object:Gem::Version
81
- hash: 11
82
77
  segments:
83
78
  - 0
84
79
  - 6
@@ -94,7 +89,6 @@ dependencies:
94
89
  requirements:
95
90
  - - ~>
96
91
  - !ruby/object:Gem::Version
97
- hash: 15
98
92
  segments:
99
93
  - 3
100
94
  - 1
@@ -110,7 +104,6 @@ dependencies:
110
104
  requirements:
111
105
  - - "="
112
106
  - !ruby/object:Gem::Version
113
- hash: 3
114
107
  segments:
115
108
  - 0
116
109
  - 4
@@ -125,7 +118,6 @@ dependencies:
125
118
  requirements:
126
119
  - - ~>
127
120
  - !ruby/object:Gem::Version
128
- hash: 961915916
129
121
  segments:
130
122
  - 3
131
123
  - 0
@@ -141,7 +133,6 @@ dependencies:
141
133
  requirements:
142
134
  - - ~>
143
135
  - !ruby/object:Gem::Version
144
- hash: 7
145
136
  segments:
146
137
  - 2
147
138
  - 1
@@ -157,7 +148,6 @@ dependencies:
157
148
  requirements:
158
149
  - - ~>
159
150
  - !ruby/object:Gem::Version
160
- hash: 15
161
151
  segments:
162
152
  - 0
163
153
  - 5
@@ -173,14 +163,28 @@ dependencies:
173
163
  requirements:
174
164
  - - ~>
175
165
  - !ruby/object:Gem::Version
176
- hash: 9
177
166
  segments:
178
167
  - 0
179
- - 7
180
- - 5
181
- version: 0.7.5
168
+ - 8
169
+ - 1
170
+ version: 0.8.1
182
171
  type: :runtime
183
172
  version_requirements: *id010
173
+ - !ruby/object:Gem::Dependency
174
+ name: rdoc
175
+ prerelease: false
176
+ requirement: &id011 !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ">="
180
+ - !ruby/object:Gem::Version
181
+ segments:
182
+ - 2
183
+ - 5
184
+ - 11
185
+ version: 2.5.11
186
+ type: :runtime
187
+ version_requirements: *id011
184
188
  description: A Ruby on Rails CMS that supports Rails 3. It's easy to extend and sticks to 'the Rails way' where possible.
185
189
  email: info@refinerycms.com
186
190
  executables:
@@ -209,44 +213,13 @@ files:
209
213
  - config/initializers/fix_rack.rb
210
214
  - config/routes.rb
211
215
  - config/settings.rb
212
- - db/migrate/20091109012126_add_missing_indexes.rb
213
- - db/migrate/20091130040711_add_down_for_maintenance_page.rb
214
- - db/migrate/20091207033335_add_superuser_to_users.rb
215
- - db/migrate/20100114092849_add_themes_table.rb
216
- - db/migrate/20100125003944_rename_title_to_name_on_user_plugins.rb
217
- - db/migrate/20100125033146_migrate_old_plugin_titles_to_plugin_names_for_users.rb
218
- - db/migrate/20100127004649_add_reset_code_to_users.rb
219
- - db/migrate/20100202034802_remove_custom_title_image_id_and_image_id_from_pages.rb
220
- - db/migrate/20100204011654_change_part_titles_to_titleized_version_for_new_format.rb
221
- - db/migrate/20100223211536_remove_themes_table.rb
222
- - db/migrate/20100305023036_change_users_columns_for_authlogic.rb
223
- - db/migrate/20100305023037_remove_unused_users_columns.rb
224
- - db/migrate/20100312155331_make_user_perishable_token_nullable.rb
225
- - db/migrate/20100312160327_make_user_persistence_token_nullable.rb
226
- - db/migrate/20100315203301_remove_state_from_users.rb
227
- - db/migrate/20100419001048_change_image_grid_thumbnail_size_and_regenerate.rb
228
- - db/migrate/20100522020225_rename_permissions_for_resources_plugin_to_files.rb
229
- - db/migrate/20100525084518_remove_take_down_for_maintenance_page.rb
230
- - db/migrate/20100525110237_add_small_and_large_thumbnail_sizes.rb
231
- - db/migrate/20100530205942_update_link_url_on_pages_from_inquiries_new_to_contact.rb
232
- - db/migrate/20100605132138_convert_resource_to_dragonfly.rb
233
- - db/migrate/20100605132208_convert_image_to_dragonfly.rb
234
- - db/migrate/20100606135207_change_thumbnail_sizes_for_dragonfly.rb
235
- - db/migrate/20100608062447_add_scoping_to_refinery_settings.rb
236
- - db/migrate/20100623220402_add_restricted_to_refinery_settings.rb
237
- - db/migrate/20100624024501_add_roles.rb
238
- - db/migrate/20100629081543_add_callback_proc_as_string_to_refinery_settings.rb
239
- - db/migrate/20100701053151_remove_superuser_from_users.rb
240
- - db/migrate/20100702022630_add_spam_to_inquiries.rb
241
- - db/migrate/20100708014636_ensure_user_plugins_use_name_and_not_title.rb
242
- - db/migrate/20100729221735_remove_page_translations_if_present.rb
243
- - db/migrate/20100826232810_move_inquiry_settings_to_refinery_settings.rb
244
- - db/migrate/20100831122919_move_page_to_nested_set.rb
245
- - db/migrate/20100913234704_add_cached_slug_to_pages.rb
216
+ - db/migrate/20100913234704_create_refinery_schema.rb
217
+ - db/migrate/20100926142529_add_value_type_to_refinery_settings.rb
218
+ - db/migrate/20100929035252_add_missing_indexes_to_roles_users.rb
246
219
  - db/schema.rb
247
220
  - db/seeds.rb
248
- - db/seeds/inquiry_settings.rb
249
221
  - db/seeds/pages.rb
222
+ - db/seeds/pages_for_inquiries.rb
250
223
  - db/seeds/refinery_settings.rb
251
224
  - license.md
252
225
  - readme.md
@@ -258,6 +231,7 @@ files:
258
231
  - vendor/refinerycms/authentication/app/helpers/users_helper.rb
259
232
  - vendor/refinerycms/authentication/app/mailers/user_mailer.rb
260
233
  - vendor/refinerycms/authentication/app/models/role.rb
234
+ - vendor/refinerycms/authentication/app/models/roles_users.rb
261
235
  - vendor/refinerycms/authentication/app/models/user.rb
262
236
  - vendor/refinerycms/authentication/app/models/user_plugin.rb
263
237
  - vendor/refinerycms/authentication/app/models/user_session.rb
@@ -296,6 +270,7 @@ files:
296
270
  - vendor/refinerycms/authentication/lib/authenticated_test_helper.rb
297
271
  - vendor/refinerycms/authentication/lib/authentication.rb
298
272
  - vendor/refinerycms/authentication/readme.md
273
+ - vendor/refinerycms/authentication/spec/models/user_spec.rb
299
274
  - vendor/refinerycms/authentication/test/unit/user_mailer_test.rb
300
275
  - vendor/refinerycms/authentication/test/unit/user_test.rb
301
276
  - vendor/refinerycms/core/app/controllers/admin/dialogs_controller.rb
@@ -783,6 +758,7 @@ files:
783
758
  - vendor/refinerycms/core/public/javascripts/jquery/jquery.jcarousel.js
784
759
  - vendor/refinerycms/core/public/javascripts/jquery/jquery.textTruncate.js
785
760
  - vendor/refinerycms/core/public/javascripts/jquery/jquery.timers.js
761
+ - vendor/refinerycms/core/public/javascripts/rails.js
786
762
  - vendor/refinerycms/core/public/javascripts/refinery/admin.js
787
763
  - vendor/refinerycms/core/public/javascripts/refinery/boot_wym.js
788
764
  - vendor/refinerycms/core/public/javascripts/refinery/core.js
@@ -888,12 +864,15 @@ files:
888
864
  - vendor/refinerycms/images/config/routes.rb
889
865
  - vendor/refinerycms/images/features/manage_images.feature
890
866
  - vendor/refinerycms/images/features/step_definitions/image_steps.rb
867
+ - vendor/refinerycms/images/features/support/factories.rb
891
868
  - vendor/refinerycms/images/features/support/paths.rb
892
869
  - vendor/refinerycms/images/features/uploads/beach.jpeg
893
870
  - vendor/refinerycms/images/features/uploads/id-rather-be-here.jpg
894
871
  - vendor/refinerycms/images/features/uploads/refinery_is_awesome.txt
895
872
  - vendor/refinerycms/images/lib/images.rb
896
873
  - vendor/refinerycms/images/readme.md
874
+ - vendor/refinerycms/images/spec/models/image_spec.rb
875
+ - vendor/refinerycms/images/spec/uploads/beach.jpeg
897
876
  - vendor/refinerycms/pages/app/controllers/admin/page_parts_controller.rb
898
877
  - vendor/refinerycms/pages/app/controllers/admin/pages_controller.rb
899
878
  - vendor/refinerycms/pages/app/controllers/admin/pages_dialogs_controller.rb
@@ -936,6 +915,7 @@ files:
936
915
  - vendor/refinerycms/pages/features/manage_pages.feature
937
916
  - vendor/refinerycms/pages/features/step_definitions/page_steps.rb
938
917
  - vendor/refinerycms/pages/features/support/paths.rb
918
+ - vendor/refinerycms/pages/features/visit_pages.feature
939
919
  - vendor/refinerycms/pages/lib/pages.rb
940
920
  - vendor/refinerycms/pages/lib/pages/marketable_routes.rb
941
921
  - vendor/refinerycms/pages/readme.md
@@ -972,6 +952,8 @@ files:
972
952
  - vendor/refinerycms/resources/features/uploads/refinery_is_awesome.txt
973
953
  - vendor/refinerycms/resources/lib/resources.rb
974
954
  - vendor/refinerycms/resources/readme.md
955
+ - vendor/refinerycms/resources/spec/models/resource_spec.rb
956
+ - vendor/refinerycms/resources/spec/uploads/refinery_is_awesome.txt
975
957
  - vendor/refinerycms/settings/app/controllers/admin/refinery_settings_controller.rb
976
958
  - vendor/refinerycms/settings/app/models/refinery_setting.rb
977
959
  - vendor/refinerycms/settings/app/views/admin/refinery_settings/_form.html.erb
@@ -998,6 +980,7 @@ files:
998
980
  - vendor/refinerycms/settings/features/support/paths.rb
999
981
  - vendor/refinerycms/settings/lib/settings.rb
1000
982
  - vendor/refinerycms/settings/readme.md
983
+ - vendor/refinerycms/settings/spec/models/refinery_setting_spec.rb
1001
984
  has_rdoc: true
1002
985
  homepage: http://refinerycms.com
1003
986
  licenses: []
@@ -1012,7 +995,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
1012
995
  requirements:
1013
996
  - - ">="
1014
997
  - !ruby/object:Gem::Version
1015
- hash: 3
1016
998
  segments:
1017
999
  - 0
1018
1000
  version: "0"
@@ -1021,7 +1003,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1021
1003
  requirements:
1022
1004
  - - ">="
1023
1005
  - !ruby/object:Gem::Version
1024
- hash: 3
1025
1006
  segments:
1026
1007
  - 0
1027
1008
  version: "0"
@@ -1,25 +0,0 @@
1
- class AddMissingIndexes < ActiveRecord::Migration
2
- def self.up
3
- add_index :pages, :parent_id
4
- add_index :pages, :custom_title_image_id
5
- add_index :pages, :image_id
6
- add_index :images, :parent_id
7
- add_index :page_parts, :page_id
8
-
9
- add_index :pages, :id
10
- add_index :page_parts, :id
11
- add_index :users, :id
12
- end
13
-
14
- def self.down
15
- remove_index :pages, :parent_id
16
- remove_index :pages, :custom_title_image_id
17
- remove_index :pages, :image_id
18
- remove_index :images, :parent_id
19
- remove_index :page_parts, :page_id
20
-
21
- remove_index :pages, :id
22
- remove_index :page_parts, :id
23
- remove_index :users, :id
24
- end
25
- end
@@ -1,15 +0,0 @@
1
- class AddDownForMaintenancePage < ActiveRecord::Migration
2
- def self.up
3
- page = Page.create(:title => "Down for maintenance", :menu_match => "^/maintenance$", :show_in_menu => false)
4
- page.parts.create(:title => "body", :body => "<p>Our site is currently down for maintenance. Please try back later.</p>")
5
- end
6
-
7
- def self.down
8
- page = Page.find_by_menu_match("^/maintenance$")
9
- unless page.nil?
10
- page.parts.delete_all
11
- page.update_attributes({:menu_match => nil, :link_url => nil, :deletable => true})
12
- page.destroy
13
- end
14
- end
15
- end
@@ -1,12 +0,0 @@
1
- class AddSuperuserToUsers < ActiveRecord::Migration
2
- def self.up
3
- add_column :users, :superuser, :boolean, :default => false
4
- unless (user = User.first).nil?
5
- user.update_attribute(:superuser, true)
6
- end
7
- end
8
-
9
- def self.down
10
- remove_column :users, :superuser
11
- end
12
- end
@@ -1,19 +0,0 @@
1
- class AddThemesTable < ActiveRecord::Migration
2
-
3
- def self.up
4
- create_table "themes", :force => true do |t|
5
- t.integer "size"
6
- t.string "content_type"
7
- t.string "filename"
8
- t.string "title"
9
- t.text "description"
10
- t.text "license"
11
- t.timestamps
12
- end
13
- end
14
-
15
- def self.down
16
- drop_table :themes
17
- end
18
-
19
- end
@@ -1,9 +0,0 @@
1
- class RenameTitleToNameOnUserPlugins < ActiveRecord::Migration
2
- def self.up
3
- rename_column :user_plugins, :title, :name
4
- end
5
-
6
- def self.down
7
- rename_column :user_plugins, :name, :title
8
- end
9
- end
@@ -1,61 +0,0 @@
1
- class MigrateOldPluginTitlesToPluginNamesForUsers < ActiveRecord::Migration
2
- def self.up
3
- UserPlugin.find(:all, :conditions => {:user_id => nil}).each { |up| up.destroy }
4
- User.all.each do |user|
5
- user.plugins.each do |plugin|
6
- plugin.update_attribute(:name, case plugin.name
7
- when "Users"
8
- "refinery_users"
9
- when "Dashboard"
10
- "refinery_dashboard"
11
- when "Images"
12
- "refinery_images"
13
- when "Inquiries"
14
- "refinery_inquiries"
15
- when "Pages"
16
- "refinery_pages"
17
- when "Refinery"
18
- "refinery_core"
19
- when "Settings"
20
- "refinery_settings"
21
- when "Resources"
22
- "refinery_files"
23
- else
24
- if (refinery_plugin = ::Refinery::Plugins.registered.find_by_title(plugin.name)).present? and
25
- refinery_plugin.name.present?
26
- refinery_plugin.name
27
- else
28
- plugin.name.gsub(" ", "_").downcase
29
- end
30
- end)
31
- end
32
- end
33
- end
34
-
35
- def self.down
36
- User.all.each do |user|
37
- user.plugins.each do |plugin|
38
- plugin.update_attribute(:name, case plugin.name
39
- when "refinery_users"
40
- "Users"
41
- when "refinery_dashboard"
42
- "Dashboard"
43
- when "refinery_images"
44
- "Images"
45
- when "refinery_inquiries"
46
- "Inquiries"
47
- when "refinery_pages"
48
- "Pages"
49
- when "refinery_core"
50
- "Refinery"
51
- when "refinery_settings"
52
- "Settings"
53
- when "refinery_files"
54
- "Resources"
55
- else
56
- plugin.name.titleize
57
- end)
58
- end
59
- end
60
- end
61
- end
@@ -1,9 +0,0 @@
1
- class AddResetCodeToUsers < ActiveRecord::Migration
2
- def self.up
3
- add_column :users, :reset_code, :string
4
- end
5
-
6
- def self.down
7
- remove_column :users, :reset_code
8
- end
9
- end
@@ -1,13 +0,0 @@
1
- class RemoveCustomTitleImageIdAndImageIdFromPages < ActiveRecord::Migration
2
-
3
- def self.up
4
- remove_column :pages, :custom_title_image_id
5
- remove_column :pages, :image_id
6
- end
7
-
8
- def self.down
9
- add_column :pages, :custom_title_image_id, :integer
10
- add_column :pages, :image_id, :integer
11
- end
12
-
13
- end
@@ -1,13 +0,0 @@
1
- class ChangePartTitlesToTitleizedVersionForNewFormat < ActiveRecord::Migration
2
- def self.up
3
- PagePart.all.each do |page_part|
4
- page_part.update_attribute(:title, page_part.title.titleize)
5
- end
6
- end
7
-
8
- def self.down
9
- PagePart.all.each do |page_part|
10
- page_part.update_attribute(:title, page_part.title.downcase.gsub(" ", "_"))
11
- end
12
- end
13
- end