releaf 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (201) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +15 -12
  3. data/Rakefile +8 -0
  4. data/app/assets/javascripts/releaf/controllers/base.js +0 -40
  5. data/app/assets/javascripts/releaf/include/field.type_date_or_datetime_or_time.js +43 -0
  6. data/app/assets/javascripts/releaf/include/nested_fields.js +58 -65
  7. data/app/assets/javascripts/releaf/include/sortable.js +19 -17
  8. data/app/assets/stylesheets/releaf/controllers/releaf/content.css.erb +6 -0
  9. data/app/assets/stylesheets/releaf/include/field.css.erb +37 -13
  10. data/app/controllers/releaf/admins_controller.rb +13 -6
  11. data/app/controllers/releaf/base_application_controller.rb +4 -1
  12. data/app/controllers/releaf/base_controller.rb +415 -154
  13. data/app/controllers/releaf/content_controller.rb +62 -45
  14. data/app/controllers/releaf/roles_controller.rb +11 -9
  15. data/app/controllers/releaf/sessions_controller.rb +23 -1
  16. data/app/controllers/releaf/translations_controller.rb +21 -25
  17. data/app/helpers/releaf/admin_helper.rb +0 -20
  18. data/app/models/releaf/admin.rb +9 -0
  19. data/app/models/releaf/blank_node_base.rb +29 -0
  20. data/app/models/releaf/node.rb +6 -5
  21. data/app/models/releaf/node_base.rb +9 -3
  22. data/app/models/releaf/role.rb +9 -2
  23. data/app/views/layouts/releaf/admin.html.haml +12 -6
  24. data/app/views/layouts/releaf/devise.html.haml +32 -0
  25. data/app/views/releaf/aliases/{_edit.body.haml → _edit.body.html.haml} +0 -0
  26. data/app/views/releaf/aliases/{_edit.header.haml → _edit.header.html.haml} +1 -1
  27. data/app/views/releaf/aliases/_index.row.html.haml +5 -0
  28. data/app/views/releaf/aliases/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
  29. data/app/views/releaf/base/_edit.body.html.haml +11 -0
  30. data/app/views/releaf/base/_edit.field.html.haml +23 -0
  31. data/app/views/releaf/base/{_edit.field.type_autocomplete.haml → _edit.field_type_autocomplete.html.haml} +1 -1
  32. data/app/views/releaf/base/{_edit.field.type_checkbox.haml → _edit.field_type_boolean.html.haml} +1 -1
  33. data/app/views/releaf/base/{_edit.field.type_date.haml → _edit.field_type_date.html.haml} +0 -0
  34. data/app/views/releaf/base/{_edit.field.type_datetime.haml → _edit.field_type_datetime.html.haml} +0 -0
  35. data/app/views/releaf/base/{_edit.field.type_delete_nested.haml → _edit.field_type_delete_nested.html.haml} +0 -0
  36. data/app/views/releaf/base/{_edit.field.type_file.haml → _edit.field_type_file.html.haml} +0 -0
  37. data/app/views/releaf/base/_edit.field_type_image.html.haml +12 -0
  38. data/app/views/releaf/base/_edit.field_type_item.html.haml +31 -0
  39. data/app/views/releaf/base/{_edit.field.type_link.haml → _edit.field_type_link.html.haml} +0 -0
  40. data/app/views/releaf/base/_edit.field_type_link_i18n.html.haml +26 -0
  41. data/app/views/releaf/base/{_edit.field.type_password.haml → _edit.field_type_password.html.haml} +0 -0
  42. data/app/views/releaf/base/{_edit.field.type_richtext.haml → _edit.field_type_richtext.html.haml} +0 -0
  43. data/app/views/releaf/base/{_edit.field.type_richtext_i18n.haml → _edit.field_type_richtext_i18n.html.haml} +0 -0
  44. data/app/views/releaf/base/{_edit.field.type_text.haml → _edit.field_type_text.html.haml} +0 -0
  45. data/app/views/releaf/base/{_edit.field.type_text_i18n.haml → _edit.field_type_text_i18n.html.haml} +0 -0
  46. data/app/views/releaf/base/{_edit.field.type_textarea.haml → _edit.field_type_textarea.html.haml} +0 -0
  47. data/app/views/releaf/base/{_edit.field.type_textarea_i18n.haml → _edit.field_type_textarea_i18n.html.haml} +0 -0
  48. data/app/views/releaf/base/{_edit.field.type_time.haml → _edit.field_type_time.html.haml} +0 -0
  49. data/app/views/releaf/base/_edit.fields.association.html.haml +48 -0
  50. data/app/views/releaf/base/_edit.fields.has_many_template.html.haml +15 -0
  51. data/app/views/releaf/base/_edit.fields.html.haml +20 -0
  52. data/app/views/releaf/base/{_edit.footer.haml → _edit.footer.html.haml} +2 -2
  53. data/app/views/releaf/base/_edit.form.html.haml +4 -0
  54. data/app/views/releaf/base/_edit.header.html.haml +3 -0
  55. data/app/views/releaf/base/{_index.body.haml → _index.body.html.haml} +2 -2
  56. data/app/views/releaf/base/_index.cell.html.haml +20 -0
  57. data/app/views/releaf/base/_index.footer.html.haml +28 -0
  58. data/app/views/releaf/base/_index.header.html.haml +4 -0
  59. data/app/views/releaf/base/_index.row.html.haml +6 -0
  60. data/app/views/releaf/base/_index.search.html.haml +5 -0
  61. data/app/views/releaf/base/_index.table.html.haml +24 -0
  62. data/app/views/releaf/base/_secondary_panel.html.haml +10 -0
  63. data/app/views/releaf/base/_show.body.html.haml +3 -0
  64. data/app/views/releaf/base/_show.field.html.haml +20 -0
  65. data/app/views/releaf/base/_show.field_type_date.html.haml +9 -0
  66. data/app/views/releaf/base/_show.field_type_date_time.html.haml +9 -0
  67. data/app/views/releaf/base/_show.field_type_email.html.haml +6 -0
  68. data/app/views/releaf/base/_show.field_type_file.html.haml +7 -0
  69. data/app/views/releaf/base/_show.field_type_image.html.haml +10 -0
  70. data/app/views/releaf/base/_show.field_type_item.html.haml +11 -0
  71. data/app/views/releaf/base/_show.field_type_link.html.haml +14 -0
  72. data/app/views/releaf/base/_show.field_type_password.html.haml +6 -0
  73. data/app/views/releaf/base/_show.field_type_richtext.html.haml +6 -0
  74. data/app/views/releaf/base/_show.field_type_text.html.haml +6 -0
  75. data/app/views/releaf/base/_show.field_type_textarea.html.haml +6 -0
  76. data/app/views/releaf/base/_show.field_type_time.html.haml +9 -0
  77. data/app/views/releaf/base/_show.field_type_url.html.haml +7 -0
  78. data/app/views/releaf/base/_show.fields.association.html.haml +36 -0
  79. data/app/views/releaf/base/_show.fields.has_many_template.html.haml +12 -0
  80. data/app/views/releaf/base/_show.fields.html.haml +17 -0
  81. data/app/views/releaf/base/{_show.footer.haml → _show.footer.html.haml} +6 -4
  82. data/app/views/releaf/base/_show.header.html.haml +3 -0
  83. data/app/views/releaf/base/confirm_destroy.html.haml +17 -0
  84. data/app/views/releaf/base/edit.html.haml +1 -0
  85. data/app/views/releaf/base/index.html.haml +3 -0
  86. data/app/views/releaf/base/new.html.haml +1 -0
  87. data/app/views/releaf/base/show.html.haml +3 -0
  88. data/app/views/releaf/content/{_edit.body.haml → _edit.body.html.haml} +7 -6
  89. data/app/views/releaf/content/_edit.content_fields.html.haml +11 -0
  90. data/app/views/releaf/content/_edit.fields.html.haml +17 -0
  91. data/app/views/releaf/content/{_edit.slug.haml → _edit.slug.html.haml} +0 -0
  92. data/app/views/releaf/content/{_get_content_form.haml → _get_content_form.html.haml} +2 -2
  93. data/app/views/releaf/content/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
  94. data/app/views/releaf/content/{_tree_level.haml → _tree_level.html.haml} +0 -0
  95. data/app/views/releaf/content/{ajax.new.haml → ajax.new.html.haml} +0 -0
  96. data/app/views/releaf/content/{index.haml → index.html.haml} +0 -0
  97. data/app/views/releaf/roles/_edit.field.permissions.html.haml +5 -0
  98. data/app/views/releaf/roles/{_show.field.default.haml → _show.field.default.html.haml} +1 -1
  99. data/app/views/releaf/roles/{_show.field.permissions.haml → _show.field.permissions.html.haml} +2 -2
  100. data/app/views/releaf/translations/{_edit.body.haml → _edit.body.html.haml} +0 -0
  101. data/app/views/releaf/translations/{_edit.header.haml → _edit.header.html.haml} +1 -1
  102. data/app/views/releaf/translations/_index.row.html.haml +5 -0
  103. data/app/views/releaf/translations/{_secondary_panel.haml → _secondary_panel.html.haml} +0 -0
  104. data/lib/generators/releaf/templates/initializers/releaf.rb +0 -39
  105. data/lib/generators/releaf/templates/initializers/releaf_i18n.rb +17 -0
  106. data/lib/generators/releaf/templates/javascripts/3rd_party/jquery.jcarousel.js +1058 -0
  107. data/lib/generators/releaf/templates/javascripts/lib/init_jcarousel.js +40 -0
  108. data/lib/generators/releaf/templates/migrations/create_releaf_roles.rb +1 -0
  109. data/lib/generators/releaf/templates/migrations/create_releaf_tinymce_assets.rb +1 -0
  110. data/lib/generators/releaf/templates/models/admin_ability.rb +1 -1
  111. data/lib/i18n/backend/releaf.rb +5 -4
  112. data/lib/i18n/backend/releaf/translation.rb +5 -0
  113. data/lib/i18n/backend/releaf/translation_data.rb +7 -0
  114. data/lib/i18n/backend/releaf/translation_group.rb +4 -0
  115. data/lib/releaf.rb +4 -0
  116. data/lib/releaf/boolean_at.rb +77 -0
  117. data/lib/releaf/globalize3/fallbacks.rb +19 -0
  118. data/lib/releaf/resources.rb +101 -0
  119. data/lib/releaf/slug.rb +99 -60
  120. data/lib/releaf/version.rb +1 -1
  121. data/spec/spec_helper.rb +6 -0
  122. data/templates/releaf/installer.rb +15 -4
  123. metadata +275 -329
  124. data/app/views/releaf/aliases/_index.row.haml +0 -5
  125. data/app/views/releaf/base/_edit.body.haml +0 -19
  126. data/app/views/releaf/base/_edit.field.haml +0 -96
  127. data/app/views/releaf/base/_edit.field.type_image.haml +0 -14
  128. data/app/views/releaf/base/_edit.field.type_select.haml +0 -11
  129. data/app/views/releaf/base/_edit.form.haml +0 -4
  130. data/app/views/releaf/base/_edit.has_many_associations.haml +0 -45
  131. data/app/views/releaf/base/_edit.header.haml +0 -3
  132. data/app/views/releaf/base/_index.cell.haml +0 -19
  133. data/app/views/releaf/base/_index.footer.haml +0 -22
  134. data/app/views/releaf/base/_index.header.haml +0 -4
  135. data/app/views/releaf/base/_index.row.haml +0 -6
  136. data/app/views/releaf/base/_index.search.haml +0 -5
  137. data/app/views/releaf/base/_index.table.haml +0 -8
  138. data/app/views/releaf/base/_secondary_panel.haml +0 -9
  139. data/app/views/releaf/base/_show.body.haml +0 -7
  140. data/app/views/releaf/base/_show.field.haml +0 -78
  141. data/app/views/releaf/base/_show.field.type_html.haml +0 -1
  142. data/app/views/releaf/base/_show.header.haml +0 -3
  143. data/app/views/releaf/base/confirm_destroy.haml +0 -10
  144. data/app/views/releaf/base/edit.haml +0 -1
  145. data/app/views/releaf/base/index.haml +0 -3
  146. data/app/views/releaf/base/new.haml +0 -1
  147. data/app/views/releaf/base/show.haml +0 -3
  148. data/app/views/releaf/content/_edit.content_fields.haml +0 -19
  149. data/app/views/releaf/content/_show.field.content.haml +0 -11
  150. data/app/views/releaf/roles/_edit.field.admins.haml +0 -0
  151. data/app/views/releaf/roles/_edit.field.permissions.haml +0 -5
  152. data/app/views/releaf/translations/_index.row.haml +0 -5
  153. data/spec/dummy/README.rdoc +0 -261
  154. data/spec/dummy/Rakefile +0 -7
  155. data/spec/dummy/app/assets/images/rails.png +0 -0
  156. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  157. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  158. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  159. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  160. data/spec/dummy/app/models/admin_ability.rb +0 -51
  161. data/spec/dummy/app/models/settings.rb +0 -2
  162. data/spec/dummy/app/views/layouts/application.html.haml +0 -10
  163. data/spec/dummy/config.ru +0 -4
  164. data/spec/dummy/config/application.rb +0 -68
  165. data/spec/dummy/config/boot.rb +0 -6
  166. data/spec/dummy/config/common_fields.yml.example +0 -17
  167. data/spec/dummy/config/database.yml +0 -42
  168. data/spec/dummy/config/environment.rb +0 -5
  169. data/spec/dummy/config/environments/development.rb +0 -37
  170. data/spec/dummy/config/environments/production.rb +0 -67
  171. data/spec/dummy/config/environments/test.rb +0 -37
  172. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  173. data/spec/dummy/config/initializers/devise.rb +0 -232
  174. data/spec/dummy/config/initializers/dragonfly.rb +0 -1
  175. data/spec/dummy/config/initializers/inflections.rb +0 -15
  176. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  177. data/spec/dummy/config/initializers/releaf.rb +0 -59
  178. data/spec/dummy/config/initializers/releaf_i18n.rb +0 -8
  179. data/spec/dummy/config/initializers/releaf_store_current_template.rb +0 -25
  180. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  181. data/spec/dummy/config/initializers/session_store.rb +0 -8
  182. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  183. data/spec/dummy/config/locales/devise.en.yml +0 -58
  184. data/spec/dummy/config/locales/en.yml +0 -5
  185. data/spec/dummy/config/routes.rb +0 -11
  186. data/spec/dummy/db/migrate/20130204164516_create_settings.rb +0 -17
  187. data/spec/dummy/db/migrate/20130204164523_create_releaf_nodes.rb +0 -25
  188. data/spec/dummy/db/migrate/20130204164524_create_releaf_roles.rb +0 -11
  189. data/spec/dummy/db/migrate/20130204164525_create_releaf_translations.rb +0 -31
  190. data/spec/dummy/db/migrate/20130204164526_create_releaf_admins.rb +0 -53
  191. data/spec/dummy/db/schema.rb +0 -112
  192. data/spec/dummy/db/seeds.rb +0 -64
  193. data/spec/dummy/doc/README_FOR_APP +0 -2
  194. data/spec/dummy/log/development.log +0 -74
  195. data/spec/dummy/log/test.log +0 -129
  196. data/spec/dummy/public/404.html +0 -26
  197. data/spec/dummy/public/422.html +0 -26
  198. data/spec/dummy/public/500.html +0 -25
  199. data/spec/dummy/public/favicon.ico +0 -0
  200. data/spec/dummy/script/rails +0 -6
  201. data/spec/dummy/tmp/cache/9C5/660/settings%3Ai18n_updated_at +0 -1
@@ -1,64 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- Releaf::Role.delete_all
4
- Releaf::Admin.delete_all
5
-
6
- Settings.delete_all
7
-
8
- # Role {{{
9
-
10
- puts "Creating roles"
11
- roles = {
12
- default: {
13
- name: 'default role',
14
- default: true
15
- },
16
- admins: {
17
- name: 'admins',
18
- default: false,
19
- admin_permission: true
20
- }
21
- }
22
-
23
- roles.each_value do |value|
24
- value[:id] = Releaf::Role.create!(value).id
25
- end
26
-
27
- # }}}
28
- # Admin {{{
29
-
30
- puts "Creating admins"
31
- admins = {
32
- admin: {
33
- name: 'Admin',
34
- surname: 'User',
35
- password: 'password',
36
- password_confirmation: 'password',
37
- email: 'admin@example.com',
38
- role_id: roles[:admins][:id],
39
- },
40
- janis: {
41
- name: 'Simple',
42
- surname: 'User',
43
- password: 'LetMeIn',
44
- password_confirmation: 'LetMeIn',
45
- email: 'user@example.com',
46
- role_id: roles[:default][:id]
47
- }
48
- }
49
-
50
- admins.each_value do |value|
51
- value[:id] = Releaf::Admin.create!(value).id
52
- end
53
-
54
- # }}}
55
- # Settings {{{
56
-
57
- puts "Creating settings"
58
- Settings.i18n_locales = %w[en]
59
- Settings.email_from = "do_not_reply@example.com"
60
-
61
- # }}}
62
-
63
-
64
- # vim: set fdm=marker:
@@ -1,2 +0,0 @@
1
- Use this README file to introduce your application and point to useful places in the API for learning more.
2
- Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries.
@@ -1,74 +0,0 @@
1
- Connecting to database specified by database.yml
2
- Connecting to database specified by database.yml
3
- Connecting to database specified by database.yml
4
- Connecting to database specified by database.yml
5
-  (228.2ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
6
-  (428.0ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
7
-  (39.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
8
- Migrating to CreateSettings (20130204164516)
9
-  (123.7ms) CREATE TABLE `settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `var` varchar(255) NOT NULL, `value` text, `thing_id` int(11), `thing_type` varchar(30), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
10
-  (172.7ms) CREATE UNIQUE INDEX `index_settings_on_thing_type_and_thing_id_and_var` ON `settings` (`thing_type`, `thing_id`, `var`)
11
-  (1.0ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164516')
12
- Migrating to CreateReleafNodes (20130204164523)
13
-  (121.1ms) CREATE TABLE `releaf_nodes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `slug` varchar(255), `parent_id` int(11), `lft` int(11), `rgt` int(11), `content_type` varchar(255), `content_id` int(11), `data` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `content_string` varchar(255), `position` int(11), `visible` tinyint(1) DEFAULT 1 NOT NULL, `protected` tinyint(1) DEFAULT 0 NOT NULL) ENGINE=InnoDB
14
-  (178.6ms) CREATE INDEX `index_releaf_nodes_on_parent_id` ON `releaf_nodes` (`parent_id`)
15
-  (145.3ms) CREATE INDEX `index_releaf_nodes_on_content_type_and_content_id` ON `releaf_nodes` (`content_type`, `content_id`)
16
-  (147.1ms) CREATE INDEX `index_releaf_nodes_on_lft` ON `releaf_nodes` (`lft`)
17
-  (148.0ms) CREATE INDEX `index_releaf_nodes_on_rgt` ON `releaf_nodes` (`rgt`)
18
-  (156.3ms) CREATE INDEX `index_releaf_nodes_on_slug` ON `releaf_nodes` (`slug`)
19
-  (2.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164523')
20
- Migrating to CreateReleafRoles (20130204164524)
21
-  (128.0ms) CREATE TABLE `releaf_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `permissions` text, `default` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
22
-  (2.2ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164524')
23
- Migrating to CreateReleafTranslations (20130204164525)
24
-  (147.8ms) CREATE TABLE `releaf_translation_groups` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `scope` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
25
-  (140.7ms) CREATE UNIQUE INDEX `index_releaf_translation_groups_on_scope` ON `releaf_translation_groups` (`scope`)
26
-  (131.7ms) CREATE TABLE `releaf_translations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `group_id` int(11) NOT NULL, `key` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
27
-  (149.0ms) CREATE UNIQUE INDEX `index_releaf_translations_on_group_id_and_key` ON `releaf_translations` (`group_id`, `key`)
28
-  (138.1ms) CREATE INDEX `index_releaf_translations_on_group_id` ON `releaf_translations` (`group_id`)
29
-  (133.4ms) CREATE TABLE `releaf_translation_data` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_id` int(11) NOT NULL, `lang` varchar(5) NOT NULL, `localization` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
30
-  (138.5ms) CREATE INDEX `index_releaf_translation_data_on_lang` ON `releaf_translation_data` (`lang`)
31
-  (135.2ms) CREATE INDEX `index_releaf_translation_data_on_translation_id` ON `releaf_translation_data` (`translation_id`)
32
-  (132.7ms) CREATE UNIQUE INDEX `index_releaf_translation_data_on_lang_and_translation_id` ON `releaf_translation_data` (`lang`, `translation_id`)
33
-  (1.8ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164525')
34
- Migrating to CreateReleafAdmins (20130204164526)
35
-  (125.1ms) CREATE TABLE `releaf_admins` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `phone` varchar(255), `avatar_uid` varchar(255), `role_id` int(11), `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
36
-  (169.1ms) CREATE INDEX `index_releaf_admins_on_role_id` ON `releaf_admins` (`role_id`)
37
-  (145.9ms) CREATE UNIQUE INDEX `index_releaf_admins_on_email` ON `releaf_admins` (`email`)
38
-  (140.5ms) CREATE UNIQUE INDEX `index_releaf_admins_on_reset_password_token` ON `releaf_admins` (`reset_password_token`)
39
-  (0.9ms) INSERT INTO `schema_migrations` (`version`) VALUES ('20130204164526')
40
-  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
41
- Connecting to database specified by database.yml
42
-  (3.0ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` 
43
-  (0.5ms) DROP DATABASE IF EXISTS `dummy_test`
44
-  (0.4ms) CREATE DATABASE `dummy_test` DEFAULT CHARACTER SET `utf8` COLLATE `utf8_unicode_ci`
45
-  (80.0ms) CREATE TABLE `releaf_admins` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `surname` varchar(255) NOT NULL, `phone` varchar(255), `avatar_uid` varchar(255), `role_id` int(11), `email` varchar(255) DEFAULT '' NOT NULL, `encrypted_password` varchar(255) DEFAULT '' NOT NULL, `reset_password_token` varchar(255), `reset_password_sent_at` datetime, `remember_created_at` datetime, `sign_in_count` int(11) DEFAULT 0, `current_sign_in_at` datetime, `last_sign_in_at` datetime, `current_sign_in_ip` varchar(255), `last_sign_in_ip` varchar(255), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
46
-  (216.6ms) CREATE UNIQUE INDEX `index_releaf_admins_on_email` ON `releaf_admins` (`email`)
47
-  (184.8ms) CREATE UNIQUE INDEX `index_releaf_admins_on_reset_password_token` ON `releaf_admins` (`reset_password_token`)
48
-  (152.5ms) CREATE INDEX `index_releaf_admins_on_role_id` ON `releaf_admins` (`role_id`)
49
-  (119.1ms) CREATE TABLE `releaf_nodes` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `slug` varchar(255), `parent_id` int(11), `lft` int(11), `rgt` int(11), `content_type` varchar(255), `content_id` int(11), `data` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL, `content_string` varchar(255), `position` int(11), `visible` tinyint(1) DEFAULT 1 NOT NULL, `protected` tinyint(1) DEFAULT 0 NOT NULL) ENGINE=InnoDB
50
-  (170.6ms) CREATE INDEX `index_releaf_nodes_on_content_type_and_content_id` ON `releaf_nodes` (`content_type`, `content_id`)
51
-  (128.7ms) CREATE INDEX `index_releaf_nodes_on_lft` ON `releaf_nodes` (`lft`)
52
-  (247.4ms) CREATE INDEX `index_releaf_nodes_on_parent_id` ON `releaf_nodes` (`parent_id`)
53
-  (354.3ms) CREATE INDEX `index_releaf_nodes_on_rgt` ON `releaf_nodes` (`rgt`)
54
-  (595.0ms) CREATE INDEX `index_releaf_nodes_on_slug` ON `releaf_nodes` (`slug`)
55
-  (213.0ms) CREATE TABLE `releaf_roles` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255) NOT NULL, `permissions` text, `default` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
56
-  (136.7ms) CREATE TABLE `releaf_translation_data` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `translation_id` int(11) NOT NULL, `lang` varchar(5) NOT NULL, `localization` text, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
57
-  (132.8ms) CREATE UNIQUE INDEX `index_releaf_translation_data_on_lang_and_translation_id` ON `releaf_translation_data` (`lang`, `translation_id`)
58
-  (135.4ms) CREATE INDEX `index_releaf_translation_data_on_lang` ON `releaf_translation_data` (`lang`)
59
-  (159.7ms) CREATE INDEX `index_releaf_translation_data_on_translation_id` ON `releaf_translation_data` (`translation_id`)
60
-  (126.1ms) CREATE TABLE `releaf_translation_groups` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `scope` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
61
-  (154.6ms) CREATE UNIQUE INDEX `index_releaf_translation_groups_on_scope` ON `releaf_translation_groups` (`scope`)
62
-  (125.9ms) CREATE TABLE `releaf_translations` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `group_id` int(11) NOT NULL, `key` varchar(255) NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
63
-  (180.7ms) CREATE UNIQUE INDEX `index_releaf_translations_on_group_id_and_key` ON `releaf_translations` (`group_id`, `key`)
64
-  (152.6ms) CREATE INDEX `index_releaf_translations_on_group_id` ON `releaf_translations` (`group_id`)
65
-  (138.6ms) CREATE TABLE `settings` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `var` varchar(255) NOT NULL, `value` text, `thing_id` int(11), `thing_type` varchar(30), `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
66
-  (151.2ms) CREATE UNIQUE INDEX `index_settings_on_thing_type_and_thing_id_and_var` ON `settings` (`thing_type`, `thing_id`, `var`)
67
-  (137.6ms) CREATE TABLE `schema_migrations` (`version` varchar(255) NOT NULL) ENGINE=InnoDB
68
-  (155.5ms) CREATE UNIQUE INDEX `unique_schema_migrations` ON `schema_migrations` (`version`)
69
-  (0.2ms) SELECT version FROM `schema_migrations`
70
-  (2.3ms) INSERT INTO `schema_migrations` (version) VALUES ('20130204164526')
71
-  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20130204164516')
72
-  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20130204164523')
73
-  (0.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20130204164524')
74
-  (1.8ms) INSERT INTO `schema_migrations` (version) VALUES ('20130204164525')
@@ -1,129 +0,0 @@
1
- Connecting to database specified by database.yml
2
-  (3.0ms) SELECT lang FROM `releaf_translation_data` WHERE (lang IS NOT NULL) GROUP BY lang
3
- I18n::Backend::Releaf::Translation Load (2.6ms) SELECT releaf_translations.*, releaf_translation_data.lang as "lang", releaf_translation_data.localization as "localization", releaf_translation_groups.scope as "scope" FROM `releaf_translations` INNER JOIN `releaf_translation_data` ON `releaf_translation_data`.`translation_id` = `releaf_translations`.`id` INNER JOIN `releaf_translation_groups` ON `releaf_translation_groups`.`id` = `releaf_translations`.`group_id` WHERE (releaf_translation_data.lang IS NOT NULL) AND (`releaf_translations`.`id` >= 0) ORDER BY `releaf_translations`.`id` ASC LIMIT 1000
4
- Settings Load (0.5ms) SELECT `settings`.* FROM `settings` WHERE `settings`.`thing_type` IS NULL AND `settings`.`thing_id` IS NULL AND `settings`.`var` = 'i18n_updated_at' LIMIT 1
5
-  (0.2ms) BEGIN
6
-  (0.2ms) SAVEPOINT active_record_1
7
- Releaf::Role Exists (0.4ms) SELECT 1 AS one FROM `releaf_roles` WHERE `releaf_roles`.`name` = 'role 1' LIMIT 1
8
- SQL (0.3ms) INSERT INTO `releaf_roles` (`created_at`, `default`, `name`, `permissions`, `updated_at`) VALUES ('2013-02-04 16:45:47', 0, 'role 1', '---\n- admin\n', '2013-02-04 16:45:47')
9
-  (0.1ms) RELEASE SAVEPOINT active_record_1
10
-  (0.2ms) SAVEPOINT active_record_1
11
- Releaf::Admin Exists (0.4ms) SELECT 1 AS one FROM `releaf_admins` WHERE `releaf_admins`.`email` = BINARY 'person-1@example.com' LIMIT 1
12
- Releaf::Admin Exists (0.2ms) SELECT 1 AS one FROM `releaf_admins` WHERE `releaf_admins`.`email` = 'person-1@example.com' LIMIT 1
13
- SQL (0.3ms) INSERT INTO `releaf_admins` (`avatar_uid`, `created_at`, `current_sign_in_at`, `current_sign_in_ip`, `email`, `encrypted_password`, `last_sign_in_at`, `last_sign_in_ip`, `name`, `phone`, `remember_created_at`, `reset_password_sent_at`, `reset_password_token`, `role_id`, `sign_in_count`, `surname`, `updated_at`) VALUES (NULL, '2013-02-04 16:45:47', NULL, NULL, 'person-1@example.com', '$2a$04$pbE/3hbHRSgPEIHt6LqKy.IRJ58PwHnDM2wF8TUxYxhOyzchHY3ty', NULL, NULL, 'admin', NULL, NULL, NULL, NULL, 1, 0, 'admin', '2013-02-04 16:45:47')
14
-  (0.1ms) RELEASE SAVEPOINT active_record_1
15
- Started GET "/admin" for 127.0.0.1 at 2013-02-04 18:45:47 +0200
16
- Processing by Releaf::ContentController#index as HTML
17
- Completed 401 Unauthorized in 1ms
18
- I18n::Backend::Releaf::Translation Exists (0.4ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.failure.releaf_admin.unauthenticated','devise.failure.unauthenticated','devise.unauthenticated','unauthenticated')) LIMIT 1
19
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure.releaf_admin' LIMIT 1
20
-  (0.1ms) SAVEPOINT active_record_1
21
- SQL (0.4ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise.failure.releaf_admin', '2013-02-04 16:45:47')
22
-  (0.1ms) RELEASE SAVEPOINT active_record_1
23
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure' LIMIT 1
24
-  (0.1ms) SAVEPOINT active_record_1
25
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise.failure', '2013-02-04 16:45:47')
26
-  (0.1ms) RELEASE SAVEPOINT active_record_1
27
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1
28
-  (0.1ms) SAVEPOINT active_record_1
29
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:47', 'devise', '2013-02-04 16:45:47')
30
-  (0.1ms) RELEASE SAVEPOINT active_record_1
31
- I18n::Backend::Releaf::Translation Load (0.3ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 1 AND `releaf_translations`.`key` = 'devise.failure.releaf_admin.unauthenticated' ORDER BY releaf_translations.key LIMIT 1
32
-  (0.1ms) SAVEPOINT active_record_1
33
- I18n::Backend::Releaf::Translation Exists (0.4ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.failure.releaf_admin.unauthenticated' AND `releaf_translations`.`group_id` = 1) LIMIT 1
34
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:47', 1, 'devise.failure.releaf_admin.unauthenticated', '2013-02-04 16:45:47')
35
-  (0.1ms) RELEASE SAVEPOINT active_record_1
36
- I18n::Backend::Releaf::Translation Exists (0.2ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.failure.unauthenticated','devise.unauthenticated','unauthenticated')) LIMIT 1
37
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.failure' LIMIT 1
38
- I18n::Backend::Releaf::TranslationGroup Load (0.3ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1
39
- I18n::Backend::Releaf::Translation Load (0.3ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 2 AND `releaf_translations`.`key` = 'devise.failure.unauthenticated' ORDER BY releaf_translations.key LIMIT 1
40
-  (0.1ms) SAVEPOINT active_record_1
41
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.failure.unauthenticated' AND `releaf_translations`.`group_id` = 2) LIMIT 1
42
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:47', 2, 'devise.failure.unauthenticated', '2013-02-04 16:45:47')
43
-  (0.1ms) RELEASE SAVEPOINT active_record_1
44
- Started GET "/admin/sign_in" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
45
- Processing by Releaf::SessionsController#new as HTML
46
- Rendered /Users/miks/code/releaf/app/views/releaf/sessions/new.html.haml within layouts/releaf/admin (5.5ms)
47
- Completed 200 OK in 26ms (Views: 25.2ms | ActiveRecord: 0.0ms)
48
- Started POST "/admin/sign_in" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
49
- Processing by Releaf::SessionsController#create as HTML
50
- Parameters: {"utf8"=>"✓", "releaf_admin"=>{"email"=>"person-1@example.com", "password"=>"[FILTERED]"}}
51
- Releaf::Admin Load (0.4ms) SELECT `releaf_admins`.* FROM `releaf_admins` WHERE `releaf_admins`.`email` = 'person-1@example.com' LIMIT 1
52
-  (0.1ms) SAVEPOINT active_record_1
53
-  (0.4ms) UPDATE `releaf_admins` SET `last_sign_in_at` = '2013-02-04 16:45:48', `current_sign_in_at` = '2013-02-04 16:45:48', `last_sign_in_ip` = '127.0.0.1', `current_sign_in_ip` = '127.0.0.1', `sign_in_count` = 1, `updated_at` = '2013-02-04 16:45:48' WHERE `releaf_admins`.`id` = 1
54
-  (0.1ms) RELEASE SAVEPOINT active_record_1
55
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.sessions.releaf_admin.signed_in','devise.sessions.signed_in','devise.signed_in','signed_in')) LIMIT 1
56
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions.releaf_admin' LIMIT 1
57
-  (0.1ms) SAVEPOINT active_record_1
58
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'devise.sessions.releaf_admin', '2013-02-04 16:45:48')
59
-  (0.1ms) RELEASE SAVEPOINT active_record_1
60
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions' LIMIT 1
61
-  (0.1ms) SAVEPOINT active_record_1
62
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'devise.sessions', '2013-02-04 16:45:48')
63
-  (0.1ms) RELEASE SAVEPOINT active_record_1
64
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1
65
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 4 AND `releaf_translations`.`key` = 'devise.sessions.releaf_admin.signed_in' ORDER BY releaf_translations.key LIMIT 1
66
-  (0.1ms) SAVEPOINT active_record_1
67
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.sessions.releaf_admin.signed_in' AND `releaf_translations`.`group_id` = 4) LIMIT 1
68
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 4, 'devise.sessions.releaf_admin.signed_in', '2013-02-04 16:45:48')
69
-  (0.1ms) RELEASE SAVEPOINT active_record_1
70
- I18n::Backend::Releaf::Translation Exists (0.2ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('devise.sessions.signed_in','devise.signed_in','signed_in')) LIMIT 1
71
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise.sessions' LIMIT 1
72
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'devise' LIMIT 1
73
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 5 AND `releaf_translations`.`key` = 'devise.sessions.signed_in' ORDER BY releaf_translations.key LIMIT 1
74
-  (0.1ms) SAVEPOINT active_record_1
75
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'devise.sessions.signed_in' AND `releaf_translations`.`group_id` = 5) LIMIT 1
76
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 5, 'devise.sessions.signed_in', '2013-02-04 16:45:48')
77
-  (0.1ms) RELEASE SAVEPOINT active_record_1
78
- Redirected to http://www.example.com/admin
79
- Completed 302 Found in 35ms (ActiveRecord: 0.0ms)
80
- Started GET "/admin" for 127.0.0.1 at 2013-02-04 18:45:48 +0200
81
- Processing by Releaf::ContentController#index as HTML
82
- Releaf::Admin Load (0.4ms) SELECT `releaf_admins`.* FROM `releaf_admins` WHERE `releaf_admins`.`id` = 1 LIMIT 1
83
- Releaf::Role Load (0.3ms) SELECT `releaf_roles`.* FROM `releaf_roles` WHERE `releaf_roles`.`id` = 1 LIMIT 1
84
- Rendered /Users/miks/code/releaf/app/views/releaf/content/index.haml within layouts/releaf/admin (0.7ms)
85
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('global.logout','logout')) LIMIT 1
86
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'global' LIMIT 1
87
-  (0.1ms) SAVEPOINT active_record_1
88
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'global', '2013-02-04 16:45:48')
89
-  (0.1ms) RELEASE SAVEPOINT active_record_1
90
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 6 AND `releaf_translations`.`key` = 'global.logout' ORDER BY releaf_translations.key LIMIT 1
91
-  (0.1ms) SAVEPOINT active_record_1
92
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'global.logout' AND `releaf_translations`.`group_id` = 6) LIMIT 1
93
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 6, 'global.logout', '2013-02-04 16:45:48')
94
-  (0.1ms) RELEASE SAVEPOINT active_record_1
95
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.releaf/content','admin.releaf/content','releaf/content')) LIMIT 1
96
- I18n::Backend::Releaf::TranslationGroup Load (0.3ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
97
-  (0.1ms) SAVEPOINT active_record_1
98
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'admin.main_menu', '2013-02-04 16:45:48')
99
-  (0.1ms) RELEASE SAVEPOINT active_record_1
100
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1
101
-  (0.1ms) SAVEPOINT active_record_1
102
- SQL (0.2ms) INSERT INTO `releaf_translation_groups` (`created_at`, `scope`, `updated_at`) VALUES ('2013-02-04 16:45:48', 'admin', '2013-02-04 16:45:48')
103
-  (0.1ms) RELEASE SAVEPOINT active_record_1
104
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.releaf/content' ORDER BY releaf_translations.key LIMIT 1
105
-  (0.1ms) SAVEPOINT active_record_1
106
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.releaf/content' AND `releaf_translations`.`group_id` = 7) LIMIT 1
107
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.releaf/content', '2013-02-04 16:45:48')
108
-  (0.1ms) RELEASE SAVEPOINT active_record_1
109
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.*permissions','admin.*permissions','*permissions')) LIMIT 1
110
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
111
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1
112
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.*permissions' ORDER BY releaf_translations.key LIMIT 1
113
-  (0.1ms) SAVEPOINT active_record_1
114
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.*permissions' AND `releaf_translations`.`group_id` = 7) LIMIT 1
115
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.*permissions', '2013-02-04 16:45:48')
116
-  (0.1ms) RELEASE SAVEPOINT active_record_1
117
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (releaf_translations.key IN ('admin.main_menu.releaf/translations','admin.releaf/translations','releaf/translations')) LIMIT 1
118
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin.main_menu' LIMIT 1
119
- I18n::Backend::Releaf::TranslationGroup Load (0.2ms) SELECT `releaf_translation_groups`.* FROM `releaf_translation_groups` WHERE `releaf_translation_groups`.`scope` = 'admin' LIMIT 1
120
- I18n::Backend::Releaf::Translation Load (0.2ms) SELECT `releaf_translations`.* FROM `releaf_translations` WHERE `releaf_translations`.`group_id` = 7 AND `releaf_translations`.`key` = 'admin.main_menu.releaf/translations' ORDER BY releaf_translations.key LIMIT 1
121
-  (0.1ms) SAVEPOINT active_record_1
122
- I18n::Backend::Releaf::Translation Exists (0.3ms) SELECT 1 AS one FROM `releaf_translations` WHERE (`releaf_translations`.`key` = BINARY 'admin.main_menu.releaf/translations' AND `releaf_translations`.`group_id` = 7) LIMIT 1
123
- SQL (0.2ms) INSERT INTO `releaf_translations` (`created_at`, `group_id`, `key`, `updated_at`) VALUES ('2013-02-04 16:45:48', 7, 'admin.main_menu.releaf/translations', '2013-02-04 16:45:48')
124
-  (0.1ms) RELEASE SAVEPOINT active_record_1
125
- Releaf::Node Load (0.4ms) SELECT `releaf_nodes`.* FROM `releaf_nodes` WHERE `releaf_nodes`.`parent_id` IS NULL ORDER BY position, `releaf_nodes`.`lft`
126
- Rendered /Users/miks/code/releaf/app/views/releaf/content/_tree_level.haml (10.9ms)
127
- Rendered /Users/miks/code/releaf/app/views/releaf/content/_secondary_panel.haml (16.6ms)
128
- Completed 200 OK in 112ms (Views: 85.3ms | ActiveRecord: 12.3ms)
129
-  (1.5ms) ROLLBACK
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/404.html -->
21
- <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,26 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/422.html -->
21
- <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
24
- </div>
25
- </body>
26
- </html>
@@ -1,25 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
- </style>
17
- </head>
18
-
19
- <body>
20
- <!-- This file lives in public/500.html -->
21
- <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
23
- </div>
24
- </body>
25
- </html>
File without changes
@@ -1,6 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
-
4
- APP_PATH = File.expand_path('../../config/application', __FILE__)
5
- require File.expand_path('../../config/boot', __FILE__)
6
- require 'rails/commands'
@@ -1 +0,0 @@
1
- o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1359996345.613906: @value0