ecm_cms2_backend 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +1 -2
  4. data/app/assets/javascripts/ecm/cms/backend/application/dummy.js +0 -0
  5. data/app/assets/stylesheets/ecm/cms/backend/application.css +0 -11
  6. data/app/assets/stylesheets/ecm/cms/backend/application/dummy.css +0 -0
  7. data/app/controllers/backend_controller.rb +1 -1
  8. data/app/controllers/ecm/cms/backend/add_homepages_service_controller.rb +1 -1
  9. data/app/controllers/ecm/cms/backend/import_partials_service_controller.rb +2 -2
  10. data/app/controllers/ecm/cms/backend/navigation_items_controller.rb +2 -2
  11. data/app/controllers/ecm/cms/backend/navigations_controller.rb +2 -2
  12. data/app/controllers/ecm/cms/backend/templates_controller.rb +1 -1
  13. data/app/policies/ecm/cms/add_homepages_service_policy.rb +1 -1
  14. data/app/policies/ecm/cms/content_box_policy.rb +1 -1
  15. data/app/policies/ecm/cms/fragment_policy.rb +1 -1
  16. data/app/policies/ecm/cms/import_partials_service_policy.rb +1 -1
  17. data/app/policies/ecm/cms/navigation_item_policy.rb +1 -1
  18. data/app/policies/ecm/cms/navigation_policy.rb +1 -1
  19. data/app/policies/ecm/cms/page_policy.rb +1 -1
  20. data/app/policies/ecm/cms/partial_policy.rb +1 -1
  21. data/app/policies/ecm/cms/template_policy.rb +1 -1
  22. data/config/initializers/assets.rb +1 -1
  23. data/lib/ecm/cms/backend/configuration.rb +4 -4
  24. data/lib/ecm/cms/backend/engine.rb +2 -2
  25. data/lib/ecm/cms/backend/version.rb +1 -1
  26. data/lib/generators/ecm/cms/backend/install/install_generator.rb +1 -1
  27. data/lib/generators/ecm/cms/backend/install/templates/initializer.rb +22 -18
  28. data/spec/dummy/bin/setup +8 -8
  29. data/spec/dummy/config/application.rb +6 -7
  30. data/spec/dummy/config/initializers/ecm_cms_backend.rb +14 -12
  31. data/spec/dummy/config/initializers/itsf_backend.rb +1 -1
  32. data/spec/dummy/config/initializers/route_translator.rb +1 -1
  33. data/spec/dummy/config/initializers/simple_form.rb +1 -1
  34. data/spec/dummy/db/migrate/20151126215840_create_ecm_cms_folders.ecm_cms_engine.rb +2 -2
  35. data/spec/dummy/db/migrate/20151126215843_create_ecm_cms_partials.ecm_cms_engine.rb +1 -1
  36. data/spec/dummy/db/schema.rb +90 -92
  37. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8c132ce897ed08d5c11185a70650b7d3e1affbb3
4
- data.tar.gz: 6813f9cd1b322013d85f49874ddc62ae7daff17e
3
+ metadata.gz: 5f817fa6f062dc5e485d7ec38eac5fc0d6eddbe2
4
+ data.tar.gz: 642036694b95ba9aef177a874f0283800d4b7660
5
5
  SHA512:
6
- metadata.gz: 12ef622354f50499241ee863a857705eae70266d29f056bb521d98cb469ea3be38a3d31bc19c164bece1c7461808671d23239ee1f85525f0572e130bfc0685ad
7
- data.tar.gz: 37b4916c000729610f230ce0521610df293204001fde67eb4b6865ef82b3c22f382762b98146a4e9789a72be77bf87b531e790da7f8bd9d1ce7d9a094e440d09
6
+ metadata.gz: fcbc84b9a192786452db02a5a3b1f617e1e519bd7aaba0c86b632c606e01f2bf630d68f66e3b5354ef1afa4a565e7056e341f8abedd9d152e308cfc5dcc3b341
7
+ data.tar.gz: c55f246e2dfac16629bbb0103511ab6f8c9b11c66b1bfa4a9c61588f0702630ce97817e51648b9d5e653e025487060991974a55882ed6b5a3d59389aa00b12b6
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2015 Roberto Vasquez Angel
1
+ Copyright 2016 Roberto Vasquez Angel
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/Rakefile CHANGED
@@ -14,7 +14,6 @@ RDoc::Task.new(:rdoc) do |rdoc|
14
14
  rdoc.rdoc_files.include('lib/**/*.rb')
15
15
  end
16
16
 
17
-
18
17
  Bundler::GemHelper.install_tasks
19
18
 
20
- require 'rails/dummy/tasks'
19
+ require 'rails/dummy/tasks'
@@ -1,14 +1,3 @@
1
1
  /*
2
- * This is a manifest file that'll be compiled into application.css, which will include all the files
3
- * listed below.
4
- *
5
- * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
- *
8
- * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
- * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
10
- * files in this directory. It is generally better to create a new file per style scope.
11
- *
12
2
  *= require_tree ./application
13
- *= require_self
14
3
  */
@@ -1,2 +1,2 @@
1
1
  class BackendController < ApplicationController
2
- end
2
+ end
@@ -10,4 +10,4 @@ module Ecm::Cms::Backend
10
10
  params.require(:ecm_cms_add_homepages_service).permit(locales: [])
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -7,7 +7,7 @@ module Ecm::Cms::Backend
7
7
  private
8
8
 
9
9
  def permitted_params
10
- params.fetch(:ecm_cms_import_partials_service, {}).permit()
10
+ params.fetch(:ecm_cms_import_partials_service, {}).permit
11
11
  end
12
12
  end
13
- end
13
+ end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::NavigationItemsController < Itsf::Backend::Resource::Ba
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_navigation_item).
10
- permit(:ecm_cms_navigation_id, :ecm_cms_page_id, :highlights_on, :key, :name, :parent_id, :options, :url, *Ecm::Cms::Configuration.navigation_item_properties)
9
+ params.require(:ecm_cms_navigation_item)
10
+ .permit(:ecm_cms_navigation_id, :ecm_cms_page_id, :highlights_on, :key, :name, :parent_id, :options, :url, *Ecm::Cms::Configuration.navigation_item_properties)
11
11
  end
12
12
  end
@@ -6,7 +6,7 @@ class Ecm::Cms::Backend::NavigationsController < Itsf::Backend::Resource::BaseCo
6
6
  private
7
7
 
8
8
  def permitted_params
9
- params.require(:ecm_cms_navigation).
10
- permit(:locale, :name)
9
+ params.require(:ecm_cms_navigation)
10
+ .permit(:locale, :name)
11
11
  end
12
12
  end
@@ -7,6 +7,6 @@ class Ecm::Cms::Backend::TemplatesController < Itsf::Backend::Resource::BaseCont
7
7
 
8
8
  def permitted_params
9
9
  params.require(:ecm_cms_template)
10
- .permit()
10
+ .permit
11
11
  end
12
12
  end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class AddHomepagesServicePolicy < Itsf::Backend::Service::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class ContentBoxPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class FragmentPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class ImportPartialsServicePolicy < Itsf::Backend::Service::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class NavigationItemPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class NavigationPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class PagePolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class PartialPolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,4 +1,4 @@
1
1
  module Ecm::Cms
2
2
  class TemplatePolicy < Itsf::Backend::BasePolicy
3
3
  end
4
- end
4
+ end
@@ -1,2 +1,2 @@
1
1
  Rails.application.config.assets.precompile += %w( itsf/backend/favicon.png )
2
- Rails.application.config.assets.precompile += %w( ecm_cms_backend.css )
2
+ Rails.application.config.assets.precompile += %w( ecm_cms_backend.css )
@@ -10,13 +10,13 @@ module Ecm
10
10
  end
11
11
 
12
12
  mattr_accessor :registered_controllers do
13
- -> {[]}
13
+ -> { [] }
14
14
  end
15
-
15
+
16
16
  mattr_accessor :registered_services do
17
- -> {[]}
17
+ -> { [] }
18
18
  end
19
19
  end
20
20
  end
21
21
  end
22
- end
22
+ end
@@ -4,11 +4,11 @@ module Ecm
4
4
  class Engine < ::Rails::Engine
5
5
  isolate_namespace Ecm::Cms::Backend
6
6
 
7
- initializer "ecm_cms_backend.asset_pipeline" do |app|
7
+ initializer 'ecm_cms_backend.asset_pipeline' do |app|
8
8
  app.config.assets.precompile << 'ecm_cms_backend.js'
9
9
  # app.config.assets.precompile << 'ecm_cms_backend.css'
10
10
  end
11
11
  end
12
12
  end
13
13
  end
14
- end
14
+ end
@@ -1,7 +1,7 @@
1
1
  module Ecm
2
2
  module Cms
3
3
  module Backend
4
- VERSION = "1.0.1"
4
+ VERSION = '1.0.3'.freeze
5
5
  end
6
6
  end
7
7
  end
@@ -26,4 +26,4 @@ module Ecm
26
26
  end
27
27
  end
28
28
  end
29
- end
29
+ end
@@ -1,6 +1,6 @@
1
- Ecm::Cms::Backend.configure do |config|
1
+ Ecm::Cms::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu.
3
- #
3
+ #
4
4
  # Default: config.registered_controllers = -> {[
5
5
  # Ecm::Cms::Backend::ContentBoxesController,
6
6
  # Ecm::Cms::Backend::NavigationItemsController,
@@ -9,25 +9,29 @@ Ecm::Cms::Backend.configure do |config|
9
9
  # Ecm::Cms::Backend::PartialsController,
10
10
  # Ecm::Cms::Backend::TemplatesController
11
11
  # ]}
12
- #
13
- config.registered_controllers = -> {[
14
- Ecm::Cms::Backend::ContentBoxesController,
15
- Ecm::Cms::Backend::NavigationItemsController,
16
- Ecm::Cms::Backend::NavigationsController,
17
- Ecm::Cms::Backend::PagesController,
18
- Ecm::Cms::Backend::PartialsController,
19
- Ecm::Cms::Backend::TemplatesController
20
- ]}
12
+ #
13
+ config.registered_controllers = lambda {
14
+ [
15
+ Ecm::Cms::Backend::ContentBoxesController,
16
+ Ecm::Cms::Backend::NavigationItemsController,
17
+ Ecm::Cms::Backend::NavigationsController,
18
+ Ecm::Cms::Backend::PagesController,
19
+ Ecm::Cms::Backend::PartialsController,
20
+ Ecm::Cms::Backend::TemplatesController
21
+ ]
22
+ }
21
23
 
22
24
  # Set the services, that will be shown in the backend menu.
23
25
  #
24
26
  # Default: config.registered_services = -> {[
25
27
  # Ecm::Cms::AddHomepagesServiceController,
26
- # Ecm::Cms::Backend::ImportPartialsServiceController
28
+ # Ecm::Cms::Backend::ImportPartialsServiceController
27
29
  # ]}
28
- #
29
- config.registered_services = -> {[
30
- Ecm::Cms::Backend::AddHomepagesServiceController,
31
- Ecm::Cms::Backend::ImportPartialsServiceController
32
- ]}
33
- end
30
+ #
31
+ config.registered_services = lambda {
32
+ [
33
+ Ecm::Cms::Backend::AddHomepagesServiceController,
34
+ Ecm::Cms::Backend::ImportPartialsServiceController
35
+ ]
36
+ }
37
+ end
data/spec/dummy/bin/setup CHANGED
@@ -2,15 +2,15 @@
2
2
  require 'pathname'
3
3
 
4
4
  # path to your application root.
5
- APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
5
+ APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
6
6
 
7
7
  Dir.chdir APP_ROOT do
8
8
  # This script is a starting point to setup your application.
9
9
  # Add necessary setup steps to this file:
10
10
 
11
- puts "== Installing dependencies =="
12
- system "gem install bundler --conservative"
13
- system "bundle check || bundle install"
11
+ puts '== Installing dependencies =='
12
+ system 'gem install bundler --conservative'
13
+ system 'bundle check || bundle install'
14
14
 
15
15
  # puts "\n== Copying sample files =="
16
16
  # unless File.exist?("config/database.yml")
@@ -18,12 +18,12 @@ Dir.chdir APP_ROOT do
18
18
  # end
19
19
 
20
20
  puts "\n== Preparing database =="
21
- system "bin/rake db:setup"
21
+ system 'bin/rake db:setup'
22
22
 
23
23
  puts "\n== Removing old logs and tempfiles =="
24
- system "rm -f log/*"
25
- system "rm -rf tmp/cache"
24
+ system 'rm -f log/*'
25
+ system 'rm -rf tmp/cache'
26
26
 
27
27
  puts "\n== Restarting application server =="
28
- system "touch tmp/restart.txt"
28
+ system 'touch tmp/restart.txt'
29
29
  end
@@ -1,11 +1,11 @@
1
1
  require File.expand_path('../boot', __FILE__)
2
2
 
3
3
  # Pick the frameworks you want:
4
- require "active_record/railtie"
5
- require "action_controller/railtie"
6
- require "action_mailer/railtie"
7
- require "action_view/railtie"
8
- require "sprockets/railtie"
4
+ require 'active_record/railtie'
5
+ require 'action_controller/railtie'
6
+ require 'action_mailer/railtie'
7
+ require 'action_view/railtie'
8
+ require 'sprockets/railtie'
9
9
  # require "rails/test_unit/railtie"
10
10
 
11
11
  Bundler.require(*Rails.groups)
@@ -13,7 +13,7 @@ require 'i18n/debug'
13
13
  require 'jquery-turbolinks'
14
14
  require 'rails-i18n'
15
15
  require 'route_translator'
16
- require "ecm_cms2_backend"
16
+ require 'ecm_cms2_backend'
17
17
 
18
18
  module Dummy
19
19
  class Application < Rails::Application
@@ -35,4 +35,3 @@ module Dummy
35
35
  config.active_record.raise_in_transactional_callbacks = true
36
36
  end
37
37
  end
38
-
@@ -1,17 +1,19 @@
1
- Ecm::Cms::Backend.configure do |config|
1
+ Ecm::Cms::Backend.configure do |config|
2
2
  # Set the resources, that will be shown in the backend menu in development
3
3
  # mode. This needs to be set to get a correct menu because
4
4
  # Controller.descendants is empty in development. This is an eager load
5
5
  # issue.
6
- #
6
+ #
7
7
  # Default: config.registered_controllers = []
8
- #
9
- config.registered_controllers = Proc.new {[
10
- Ecm::Cms::Backend::ContentBoxesController,
11
- Ecm::Cms::Backend::NavigationItemsController,
12
- Ecm::Cms::Backend::NavigationsController,
13
- Ecm::Cms::Backend::PagesController,
14
- Ecm::Cms::Backend::PartialsController,
15
- Ecm::Cms::Backend::TemplatesController
16
- ]}
17
- end
8
+ #
9
+ config.registered_controllers = proc {
10
+ [
11
+ Ecm::Cms::Backend::ContentBoxesController,
12
+ Ecm::Cms::Backend::NavigationItemsController,
13
+ Ecm::Cms::Backend::NavigationsController,
14
+ Ecm::Cms::Backend::PagesController,
15
+ Ecm::Cms::Backend::PartialsController,
16
+ Ecm::Cms::Backend::TemplatesController
17
+ ]
18
+ }
19
+ end
@@ -8,4 +8,4 @@ Itsf::Backend.configure do |config|
8
8
  config.backend_engines = [
9
9
  Ecm::Cms::Backend::Engine
10
10
  ]
11
- end
11
+ end
@@ -1,3 +1,3 @@
1
1
  RouteTranslator.config do |config|
2
2
  config.force_locale = true
3
- end
3
+ end
@@ -6,7 +6,7 @@ SimpleForm.setup do |config|
6
6
  # stack. The options given below are used to wrap the
7
7
  # whole input.
8
8
  config.wrappers :default, class: :input,
9
- hint_class: :field_with_hint, error_class: :field_with_errors do |b|
9
+ hint_class: :field_with_hint, error_class: :field_with_errors do |b|
10
10
  ## Extensions enabled by default
11
11
  # Any of these extensions can be disabled for a
12
12
  # given input by passing: `f.input EXTENSION_NAME => false`.
@@ -6,8 +6,8 @@ class CreateEcmCmsFolders < ActiveRecord::Migration
6
6
  t.string :pathname
7
7
 
8
8
  # associations
9
- t.integer :children_count, :default => 0, :null => false
10
- t.integer :ecm_cms_templates_count, :default => 0, :null => false
9
+ t.integer :children_count, default: 0, null: false
10
+ t.integer :ecm_cms_templates_count, default: 0, null: false
11
11
 
12
12
  # awesome nested set
13
13
  t.references :parent
@@ -10,7 +10,7 @@ class CreateEcmCmsPartials < ActiveRecord::Migration
10
10
  t.string :format
11
11
  t.string :handler
12
12
 
13
- # associations
13
+ # associations
14
14
  t.references :ecm_cms_folder
15
15
 
16
16
  t.timestamps
@@ -11,113 +11,111 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20151126215847) do
15
-
16
- create_table "ecm_cms_content_boxes", force: :cascade do |t|
17
- t.string "name"
18
- t.datetime "created_at"
19
- t.datetime "updated_at"
14
+ ActiveRecord::Schema.define(version: 20_151_126_215_847) do
15
+ create_table 'ecm_cms_content_boxes', force: :cascade do |t|
16
+ t.string 'name'
17
+ t.datetime 'created_at'
18
+ t.datetime 'updated_at'
20
19
  end
21
20
 
22
- create_table "ecm_cms_folders", force: :cascade do |t|
23
- t.string "basename"
24
- t.string "pathname"
25
- t.integer "children_count", default: 0, null: false
26
- t.integer "ecm_cms_templates_count", default: 0, null: false
27
- t.integer "parent_id"
28
- t.integer "lft"
29
- t.integer "rgt"
30
- t.integer "depth"
31
- t.datetime "created_at"
32
- t.datetime "updated_at"
21
+ create_table 'ecm_cms_folders', force: :cascade do |t|
22
+ t.string 'basename'
23
+ t.string 'pathname'
24
+ t.integer 'children_count', default: 0, null: false
25
+ t.integer 'ecm_cms_templates_count', default: 0, null: false
26
+ t.integer 'parent_id'
27
+ t.integer 'lft'
28
+ t.integer 'rgt'
29
+ t.integer 'depth'
30
+ t.datetime 'created_at'
31
+ t.datetime 'updated_at'
33
32
  end
34
33
 
35
- add_index "ecm_cms_folders", ["parent_id"], name: "index_ecm_cms_folders_on_parent_id"
36
-
37
- create_table "ecm_cms_navigation_items", force: :cascade do |t|
38
- t.string "name"
39
- t.string "url"
40
- t.string "key"
41
- t.string "options"
42
- t.text "properties"
43
- t.integer "ecm_cms_navigation_id"
44
- t.integer "ecm_cms_page_id"
45
- t.integer "parent_id"
46
- t.integer "children_count", default: 0, null: false
47
- t.integer "lft"
48
- t.integer "rgt"
49
- t.integer "depth"
50
- t.string "slug"
51
- t.datetime "created_at"
52
- t.datetime "updated_at"
34
+ add_index 'ecm_cms_folders', ['parent_id'], name: 'index_ecm_cms_folders_on_parent_id'
35
+
36
+ create_table 'ecm_cms_navigation_items', force: :cascade do |t|
37
+ t.string 'name'
38
+ t.string 'url'
39
+ t.string 'key'
40
+ t.string 'options'
41
+ t.text 'properties'
42
+ t.integer 'ecm_cms_navigation_id'
43
+ t.integer 'ecm_cms_page_id'
44
+ t.integer 'parent_id'
45
+ t.integer 'children_count', default: 0, null: false
46
+ t.integer 'lft'
47
+ t.integer 'rgt'
48
+ t.integer 'depth'
49
+ t.string 'slug'
50
+ t.datetime 'created_at'
51
+ t.datetime 'updated_at'
53
52
  end
54
53
 
55
- add_index "ecm_cms_navigation_items", ["ecm_cms_navigation_id"], name: "index_ecm_cms_navigation_items_on_ecm_cms_navigation_id"
56
- add_index "ecm_cms_navigation_items", ["parent_id"], name: "index_ecm_cms_navigation_items_on_parent_id"
54
+ add_index 'ecm_cms_navigation_items', ['ecm_cms_navigation_id'], name: 'index_ecm_cms_navigation_items_on_ecm_cms_navigation_id'
55
+ add_index 'ecm_cms_navigation_items', ['parent_id'], name: 'index_ecm_cms_navigation_items_on_parent_id'
57
56
 
58
- create_table "ecm_cms_navigations", force: :cascade do |t|
59
- t.string "locale"
60
- t.string "name"
61
- t.string "slug"
62
- t.datetime "created_at"
63
- t.datetime "updated_at"
57
+ create_table 'ecm_cms_navigations', force: :cascade do |t|
58
+ t.string 'locale'
59
+ t.string 'name'
60
+ t.string 'slug'
61
+ t.datetime 'created_at'
62
+ t.datetime 'updated_at'
64
63
  end
65
64
 
66
- create_table "ecm_cms_page_content_blocks", force: :cascade do |t|
67
- t.text "body"
68
- t.integer "ecm_cms_page_id"
69
- t.integer "ecm_cms_content_box_id"
70
- t.datetime "created_at"
71
- t.datetime "updated_at"
65
+ create_table 'ecm_cms_page_content_blocks', force: :cascade do |t|
66
+ t.text 'body'
67
+ t.integer 'ecm_cms_page_id'
68
+ t.integer 'ecm_cms_content_box_id'
69
+ t.datetime 'created_at'
70
+ t.datetime 'updated_at'
72
71
  end
73
72
 
74
- add_index "ecm_cms_page_content_blocks", ["ecm_cms_content_box_id"], name: "index_ecm_cms_page_content_blocks_on_ecm_cms_content_box_id"
75
- add_index "ecm_cms_page_content_blocks", ["ecm_cms_page_id"], name: "index_ecm_cms_page_content_blocks_on_ecm_cms_page_id"
76
-
77
- create_table "ecm_cms_pages", force: :cascade do |t|
78
- t.string "basename"
79
- t.string "pathname"
80
- t.string "title"
81
- t.text "meta_description"
82
- t.text "body"
83
- t.string "layout"
84
- t.string "locale"
85
- t.string "format"
86
- t.string "handler"
87
- t.integer "ecm_cms_folder_id"
88
- t.datetime "created_at"
89
- t.datetime "updated_at"
73
+ add_index 'ecm_cms_page_content_blocks', ['ecm_cms_content_box_id'], name: 'index_ecm_cms_page_content_blocks_on_ecm_cms_content_box_id'
74
+ add_index 'ecm_cms_page_content_blocks', ['ecm_cms_page_id'], name: 'index_ecm_cms_page_content_blocks_on_ecm_cms_page_id'
75
+
76
+ create_table 'ecm_cms_pages', force: :cascade do |t|
77
+ t.string 'basename'
78
+ t.string 'pathname'
79
+ t.string 'title'
80
+ t.text 'meta_description'
81
+ t.text 'body'
82
+ t.string 'layout'
83
+ t.string 'locale'
84
+ t.string 'format'
85
+ t.string 'handler'
86
+ t.integer 'ecm_cms_folder_id'
87
+ t.datetime 'created_at'
88
+ t.datetime 'updated_at'
90
89
  end
91
90
 
92
- add_index "ecm_cms_pages", ["ecm_cms_folder_id"], name: "index_ecm_cms_pages_on_ecm_cms_folder_id"
93
-
94
- create_table "ecm_cms_partials", force: :cascade do |t|
95
- t.string "basename"
96
- t.string "pathname"
97
- t.text "body"
98
- t.string "layout"
99
- t.string "locale"
100
- t.string "format"
101
- t.string "handler"
102
- t.integer "ecm_cms_folder_id"
103
- t.datetime "created_at"
104
- t.datetime "updated_at"
91
+ add_index 'ecm_cms_pages', ['ecm_cms_folder_id'], name: 'index_ecm_cms_pages_on_ecm_cms_folder_id'
92
+
93
+ create_table 'ecm_cms_partials', force: :cascade do |t|
94
+ t.string 'basename'
95
+ t.string 'pathname'
96
+ t.text 'body'
97
+ t.string 'layout'
98
+ t.string 'locale'
99
+ t.string 'format'
100
+ t.string 'handler'
101
+ t.integer 'ecm_cms_folder_id'
102
+ t.datetime 'created_at'
103
+ t.datetime 'updated_at'
105
104
  end
106
105
 
107
- add_index "ecm_cms_partials", ["ecm_cms_folder_id"], name: "index_ecm_cms_partials_on_ecm_cms_folder_id"
108
-
109
- create_table "ecm_cms_templates", force: :cascade do |t|
110
- t.string "basename"
111
- t.string "pathname"
112
- t.text "body"
113
- t.string "locale"
114
- t.string "format"
115
- t.string "handler"
116
- t.integer "ecm_cms_folder_id"
117
- t.datetime "created_at"
118
- t.datetime "updated_at"
106
+ add_index 'ecm_cms_partials', ['ecm_cms_folder_id'], name: 'index_ecm_cms_partials_on_ecm_cms_folder_id'
107
+
108
+ create_table 'ecm_cms_templates', force: :cascade do |t|
109
+ t.string 'basename'
110
+ t.string 'pathname'
111
+ t.text 'body'
112
+ t.string 'locale'
113
+ t.string 'format'
114
+ t.string 'handler'
115
+ t.integer 'ecm_cms_folder_id'
116
+ t.datetime 'created_at'
117
+ t.datetime 'updated_at'
119
118
  end
120
119
 
121
- add_index "ecm_cms_templates", ["ecm_cms_folder_id"], name: "index_ecm_cms_templates_on_ecm_cms_folder_id"
122
-
120
+ add_index 'ecm_cms_templates', ['ecm_cms_folder_id'], name: 'index_ecm_cms_templates_on_ecm_cms_folder_id'
123
121
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm_cms2_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
@@ -14,14 +14,14 @@ dependencies:
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '4.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
@@ -203,8 +203,10 @@ files:
203
203
  - README.rdoc
204
204
  - Rakefile
205
205
  - app/assets/javascripts/ecm/cms/backend/application.js
206
+ - app/assets/javascripts/ecm/cms/backend/application/dummy.js
206
207
  - app/assets/javascripts/ecm_cms_backend.js
207
208
  - app/assets/stylesheets/ecm/cms/backend/application.css
209
+ - app/assets/stylesheets/ecm/cms/backend/application/dummy.css
208
210
  - app/assets/stylesheets/ecm_cms_backend.css
209
211
  - app/controllers/backend_controller.rb
210
212
  - app/controllers/ecm/cms/backend/add_homepages_service_controller.rb