cmor_core_backend 0.0.51.pre → 0.0.56.pre

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.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/cmor/core/backend/resources_controller/base.rb +4 -0
  3. data/app/routes/cmor/core/backend/routing/resources_routes.rb +90 -0
  4. data/app/views/cmor/core/backend/resources_controller/base/_index_actions.html.haml +7 -0
  5. data/app/views/cmor/core/backend/resources_controller/base/_show_actions.html.haml +16 -0
  6. data/config/locales/de.yml +7 -0
  7. data/config/locales/en.yml +7 -0
  8. data/lib/cmor/core/backend/configuration.rb +32 -2
  9. data/lib/generators/cmor/core/backend/install/templates/initializer.rb +23 -0
  10. metadata +10 -77
  11. data/spec/dummy/Rakefile +0 -6
  12. data/spec/dummy/app/assets/config/manifest.js +0 -3
  13. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  14. data/spec/dummy/app/assets/javascripts/cable.js +0 -13
  15. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  16. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  17. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  18. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  19. data/spec/dummy/app/controllers/backend_controller.rb +0 -2
  20. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  21. data/spec/dummy/app/jobs/application_job.rb +0 -2
  22. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  23. data/spec/dummy/app/models/application_record.rb +0 -3
  24. data/spec/dummy/app/views/layouts/application.html.erb +0 -15
  25. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  26. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  27. data/spec/dummy/bin/bundle +0 -3
  28. data/spec/dummy/bin/rails +0 -4
  29. data/spec/dummy/bin/rake +0 -4
  30. data/spec/dummy/bin/setup +0 -36
  31. data/spec/dummy/bin/update +0 -31
  32. data/spec/dummy/bin/yarn +0 -11
  33. data/spec/dummy/config.ru +0 -5
  34. data/spec/dummy/config/application.rb +0 -32
  35. data/spec/dummy/config/boot.rb +0 -5
  36. data/spec/dummy/config/cable.yml +0 -10
  37. data/spec/dummy/config/database.yml +0 -25
  38. data/spec/dummy/config/environment.rb +0 -5
  39. data/spec/dummy/config/environments/development.rb +0 -61
  40. data/spec/dummy/config/environments/production.rb +0 -94
  41. data/spec/dummy/config/environments/test.rb +0 -46
  42. data/spec/dummy/config/initializers/administador.rb +0 -24
  43. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  44. data/spec/dummy/config/initializers/assets.rb +0 -14
  45. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  46. data/spec/dummy/config/initializers/cmor_core_backend.rb +0 -12
  47. data/spec/dummy/config/initializers/content_security_policy.rb +0 -25
  48. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  49. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  50. data/spec/dummy/config/initializers/i18n.rb +0 -2
  51. data/spec/dummy/config/initializers/inflections.rb +0 -16
  52. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  53. data/spec/dummy/config/initializers/simple_form.rb +0 -176
  54. data/spec/dummy/config/initializers/simple_form_bootstrap.rb +0 -440
  55. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  56. data/spec/dummy/config/locales/en.yml +0 -33
  57. data/spec/dummy/config/locales/simple_form.en.yml +0 -31
  58. data/spec/dummy/config/puma.rb +0 -34
  59. data/spec/dummy/config/routes.rb +0 -7
  60. data/spec/dummy/config/spring.rb +0 -6
  61. data/spec/dummy/config/storage.yml +0 -34
  62. data/spec/dummy/db/development.sqlite3 +0 -0
  63. data/spec/dummy/db/test.sqlite3 +0 -0
  64. data/spec/dummy/lib/templates/haml/scaffold/_form.html.haml +0 -12
  65. data/spec/dummy/log/development.log +0 -0
  66. data/spec/dummy/package.json +0 -5
  67. data/spec/dummy/public/404.html +0 -67
  68. data/spec/dummy/public/422.html +0 -67
  69. data/spec/dummy/public/500.html +0 -66
  70. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  71. data/spec/dummy/public/apple-touch-icon.png +0 -0
  72. data/spec/dummy/public/favicon.ico +0 -0
  73. data/spec/dummy/tmp/development_secret.txt +0 -1
  74. data/spec/rails_helper.rb +0 -62
  75. data/spec/spec_helper.rb +0 -96
  76. data/spec/support/capybara.rb +0 -1
  77. data/spec/support/factory_bot.rb +0 -12
  78. data/spec/support/pry-rails.rb +0 -1
  79. data/spec/support/rao-shoulda_matchers.rb +0 -5
  80. data/spec/support/shoulda_matchers.rb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 994d35b7a69a8ce5993b7cf94756bb2a715dedc26e319298bd922ad2a8ad1e34
4
- data.tar.gz: b79adab5695757ec023cf4ec115b84239f8356e4c07dafbf7129ed6f364a0db9
3
+ metadata.gz: 706d8379a914d4d31042960f41b5e219774eba5fe936c0f11b5be66f1cbba8b6
4
+ data.tar.gz: 80be7b89718817219c0c9d6bdc943240114338afd608a77fe623e0408b479280
5
5
  SHA512:
6
- metadata.gz: d41be244849ed448424b48f11fe1bd251439d6936b54c6b8317475b0179120f39f0730746424226449d075bdd74bda620a99abd783517099b091c45516a0dab8
7
- data.tar.gz: e2bccab9ce3655bb5bc5330a10371dbf4fa1430c297ea4941b45799ab6ce12fb69f07f61bd697285ce6bda2c326375c9b8f774cd2140b1768c8f7fb5f9170dd8
6
+ metadata.gz: 2f1ad6f2bcdd81cdf7ba3235ccc5689627741b0bcb8e657c6a8e2bcc7c6cc0563209ae568db27290b639a1897b4f7d5e48170feab6ac439d12a3ddf452eb0350
7
+ data.tar.gz: db7b3929e2f1412a3b0dba67c18110fec69ca8991566335fecb72dafff179f4395d4cd0c664ae71553d6c94b9bfcc145ce2928f21ce87aa0c14faad5e3fba06b
@@ -3,6 +3,10 @@ module Cmor
3
3
  module Backend
4
4
  module ResourcesController
5
5
  class Base < Administrador::ResourcesController::Base
6
+ if Cmor::Core.features?(:transports)
7
+ include Cmor::Transports::ResourcesController::ExportConcern
8
+ view_helper Cmor::Transports::ExportViewHelper, as: :export_helper
9
+ end
6
10
  end
7
11
  end
8
12
  end
@@ -0,0 +1,90 @@
1
+ module Cmor
2
+ module Core
3
+ module Backend
4
+ module Routing
5
+ # You can add routes to resources based an any condition that is based
6
+ # on the controller or resource class that a route is used for.
7
+ #
8
+ # This is useful when writing modules that conditionally add actions to
9
+ # resources based on the capabilities of the controller or resource class.
10
+ #
11
+ # Example:
12
+ #
13
+ # # lib/cmor/audits/engine.rb (in the Cmor::Audits Engine)
14
+ # module Cmor::Audits
15
+ # class Engine < ::Rails::Engine
16
+ # config.to_prepare do
17
+ # Cmor::Core::Backend.configure do |config|
18
+ # config.add_resources_routes(
19
+ # :cmor_audits,
20
+ # condition: ->{ resource_class.ancestors.map(&:to_s).include?("PaperTrail::Model::InstanceMethods") },
21
+ # routes: ->{
22
+ # get "versions/:version_id", on: :member, action: :version
23
+ # get "versions_at(/:version_at)", on: :member, action: :version_at
24
+ # get "versions", on: :member, action: :versions
25
+ # }
26
+ # )
27
+ # end
28
+ # end
29
+ # end
30
+ # end
31
+ #
32
+ # # config/routes.rb ( in the Cmor::Cms::Backend Engine)
33
+ # Cmor::Cms::Backend::Engine.routes.draw do
34
+ # resources :pages do
35
+ # Cmor::Core::Backend::Routing::ResourcesRoutes.inject_routes(self)
36
+ # end
37
+ # end
38
+ #
39
+ #
40
+ # This will add the routes for the versioning to the pages resource
41
+ # routing if the resource class of the pages controller includes the
42
+ # PaperTrail::Model::InstanceMethods module.
43
+ #
44
+ class ResourcesRoutes
45
+ def self.inject_routes(router, options = {})
46
+ new(router, options).inject_routes
47
+ end
48
+
49
+ def initialize(router, options = {})
50
+ @router = router
51
+ @options = options
52
+ end
53
+
54
+ def inject_routes
55
+ routes.each do |name, options|
56
+ if instance_exec(&options[:condition])
57
+ @router.instance_exec(&options[:routes])
58
+ end
59
+ end
60
+ end
61
+
62
+ def controller_class
63
+ @controller_class ||= begin
64
+ __controller = @router.instance_variable_get(:@scope).instance_variable_get(:@hash)[:controller]
65
+ __namespaces = []
66
+ __actual_scope = @router.instance_variable_get(:@scope)
67
+ while __actual_scope.instance_variable_get(:@parent).present?
68
+ __namespace = __actual_scope.instance_variable_get(:@parent).instance_variable_get(:@hash).try(:[], :module)
69
+ if __namespace.present? && !__namespaces.any? { |n| n&.start_with?(__namespace) }
70
+ __namespaces << __actual_scope.instance_variable_get(:@parent).instance_variable_get(:@hash).try(:[], :module)
71
+ end
72
+ __actual_scope = __actual_scope.instance_variable_get(:@parent)
73
+ end
74
+ __namespace = __namespaces.uniq.reverse.compact.join("/")
75
+ "#{__namespace}/#{__controller}_controller".camelize.constantize
76
+ end
77
+ end
78
+
79
+ def resource_class
80
+ controller_class.resource_class
81
+ end
82
+
83
+ def routes
84
+ @routes ||= Cmor::Core::Backend::Configuration.resources_routes
85
+ end
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
@@ -0,0 +1,7 @@
1
+ .ml-auto
2
+ - if Cmor::Core.features?(:cmor_transports) && controller.class.available_rest_actions.include?(:export)
3
+ = link_to(export_path, class: 'btn btn-secondary btn-circle btn-lg') do
4
+ %i.fas.fa-file-export
5
+ - if available_rest_actions.include?(:new)
6
+ = link_to({ action: :new }, class: 'btn btn-success btn-circle btn-lg') do
7
+ %i.fas.fa-plus
@@ -0,0 +1,16 @@
1
+ = link_to({ action: :index }, class: 'btn btn-light btn-responsive') do
2
+ %i.fas.fa-arrow-left
3
+ %span.btn-text= t('.back')
4
+
5
+ .ml-auto
6
+ - if Cmor::Core.features?(:cmor_audits) && controller.respond_to?(:versions)
7
+ = link_to([:versions, resource_namespace, resource], class: 'btn btn-secondary btn-circle btn-lg') do
8
+ %i.fas.fa-history
9
+
10
+ - if available_rest_actions.include?(:destroy)
11
+ = link_to([resource_namespace, resource], class: 'destroy btn btn-danger btn-circle btn-lg', method: :delete, 'data-confirm': I18n.t('administrador.controller.confirmations.destroy')) do
12
+ %i.fas.fa-fire
13
+
14
+ - if available_rest_actions.include?(:edit)
15
+ = link_to([:edit, resource_namespace, resource], class: 'btn btn-success btn-circle btn-lg') do
16
+ %i.fas.fa-edit
@@ -1,6 +1,13 @@
1
1
  de:
2
2
  classes:
3
3
  cmor/core/backend/engine: Core
4
+ cmor:
5
+ core:
6
+ backend:
7
+ resources_controller:
8
+ base:
9
+ show_actions:
10
+ back: Zurück
4
11
  routes:
5
12
  cmor-core-backend-engine: core
6
13
  or: oder
@@ -1,6 +1,13 @@
1
1
  en:
2
2
  classes:
3
3
  cmor/core/backend/engine: Core
4
+ cmor:
5
+ core:
6
+ backend:
7
+ resources_controller:
8
+ base:
9
+ show_actions:
10
+ back: Back
4
11
  routes:
5
12
  cmor-core-backend-engine: core
6
13
  or: or
@@ -5,6 +5,8 @@ module Cmor
5
5
  module Core
6
6
  module Backend
7
7
  module Configuration
8
+ extend self
9
+
8
10
  def configure
9
11
  yield self
10
12
  end
@@ -16,8 +18,36 @@ module Cmor
16
18
  }
17
19
  }
18
20
 
19
- def self.image_variant_options_for(identifier)
20
- @@image_variant_options[identifier]
21
+ mattr_accessor(:resources_routes) { {} }
22
+
23
+ def image_variant_options_for(identifier)
24
+ image_variant_options[identifier]
25
+ end
26
+
27
+ # You can add routes to resources based an any condition that can based
28
+ # on the controller or resource class that a route is used for.
29
+ #
30
+ # This is useful when writing modules that conditionally add actions to
31
+ # resources based on the capabilities of the controller or resource class.
32
+ #
33
+ # Example:
34
+ #
35
+ # config.add_resources_routes(
36
+ # :cmor_audits,
37
+ # condition: ->{ resource_class.ancestors.map(&:to_s).include?("PaperTrail::Model::InstanceMethods") },
38
+ # routes: ->{ paper_trail_resources }
39
+ # )
40
+ #
41
+ # Example:
42
+ #
43
+ # config.add_resources_routes(
44
+ # :acts_as_list,
45
+ # condition: ->{ resource_class.respond_to?(:position) },
46
+ # routes: ->{ get :toggle_position, on: :member }
47
+ # )
48
+ #
49
+ def add_resources_routes(name, options)
50
+ resources_routes[name] = options
21
51
  end
22
52
  end
23
53
  end
@@ -9,4 +9,27 @@ Cmor::Core::Backend.configure do |config|
9
9
  gallery: { resize: "640x480" },
10
10
  table: { resize: "160x120" }
11
11
  }
12
+
13
+ # You can add routes to resources based an any condition that is based
14
+ # on the controller or resource class that a route is used for.
15
+ #
16
+ # This is useful when writing modules that conditionally add actions to
17
+ # resources based on the capabilities of the controller or resource class.
18
+ #
19
+ # Example:
20
+ #
21
+ # config.add_resources_routes(
22
+ # :cmor_audits,
23
+ # condition: ->{ resource_class.ancestors.map(&:to_s).include?("PaperTrail::Model::InstanceMethods") },
24
+ # routes: ->{ paper_trail_resources }
25
+ # )
26
+ #
27
+ # Example:
28
+ #
29
+ # config.add_resources_routes(
30
+ # :acts_as_list,
31
+ # condition: ->{ resource_class.respond_to?(:position) },
32
+ # routes: ->{ get :toggle_position, on: :member }
33
+ # )
34
+ #
12
35
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmor_core_backend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.51.pre
4
+ version: 0.0.56.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Vasquez Angel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-23 00:00:00.000000000 Z
11
+ date: 2020-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.51.pre
33
+ version: 0.0.56.pre
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.51.pre
40
+ version: 0.0.56.pre
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sqlite3
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -310,14 +310,14 @@ dependencies:
310
310
  requirements:
311
311
  - - ">="
312
312
  - !ruby/object:Gem::Version
313
- version: 0.0.22.pre
313
+ version: 0.0.26.pre
314
314
  type: :runtime
315
315
  prerelease: false
316
316
  version_requirements: !ruby/object:Gem::Requirement
317
317
  requirements:
318
318
  - - ">="
319
319
  - !ruby/object:Gem::Version
320
- version: 0.0.22.pre
320
+ version: 0.0.26.pre
321
321
  description:
322
322
  email:
323
323
  - roberto@vasquez-angel.de
@@ -342,6 +342,9 @@ files:
342
342
  - app/controllers/cmor/core/backend/resource_controller/base.rb
343
343
  - app/controllers/cmor/core/backend/resources_controller/base.rb
344
344
  - app/controllers/cmor/core/backend/service_controller/base.rb
345
+ - app/routes/cmor/core/backend/routing/resources_routes.rb
346
+ - app/views/cmor/core/backend/resources_controller/base/_index_actions.html.haml
347
+ - app/views/cmor/core/backend/resources_controller/base/_show_actions.html.haml
345
348
  - config/initializers/assets.rb
346
349
  - config/locales/de.yml
347
350
  - config/locales/en.yml
@@ -398,76 +401,6 @@ files:
398
401
  - lib/generators/cmor/core/backend/resources_controller/templates/resources_controller.rb
399
402
  - lib/generators/cmor/core/backend/service_controller/service_controller_generator.rb
400
403
  - lib/generators/cmor/core/backend/service_controller/templates/service_controller.rb
401
- - spec/dummy/Rakefile
402
- - spec/dummy/app/assets/config/manifest.js
403
- - spec/dummy/app/assets/javascripts/application.js
404
- - spec/dummy/app/assets/javascripts/cable.js
405
- - spec/dummy/app/assets/stylesheets/application.css
406
- - spec/dummy/app/channels/application_cable/channel.rb
407
- - spec/dummy/app/channels/application_cable/connection.rb
408
- - spec/dummy/app/controllers/application_controller.rb
409
- - spec/dummy/app/controllers/backend_controller.rb
410
- - spec/dummy/app/helpers/application_helper.rb
411
- - spec/dummy/app/jobs/application_job.rb
412
- - spec/dummy/app/mailers/application_mailer.rb
413
- - spec/dummy/app/models/application_record.rb
414
- - spec/dummy/app/views/layouts/application.html.erb
415
- - spec/dummy/app/views/layouts/mailer.html.erb
416
- - spec/dummy/app/views/layouts/mailer.text.erb
417
- - spec/dummy/bin/bundle
418
- - spec/dummy/bin/rails
419
- - spec/dummy/bin/rake
420
- - spec/dummy/bin/setup
421
- - spec/dummy/bin/update
422
- - spec/dummy/bin/yarn
423
- - spec/dummy/config.ru
424
- - spec/dummy/config/application.rb
425
- - spec/dummy/config/boot.rb
426
- - spec/dummy/config/cable.yml
427
- - spec/dummy/config/database.yml
428
- - spec/dummy/config/environment.rb
429
- - spec/dummy/config/environments/development.rb
430
- - spec/dummy/config/environments/production.rb
431
- - spec/dummy/config/environments/test.rb
432
- - spec/dummy/config/initializers/administador.rb
433
- - spec/dummy/config/initializers/application_controller_renderer.rb
434
- - spec/dummy/config/initializers/assets.rb
435
- - spec/dummy/config/initializers/backtrace_silencers.rb
436
- - spec/dummy/config/initializers/cmor_core_backend.rb
437
- - spec/dummy/config/initializers/content_security_policy.rb
438
- - spec/dummy/config/initializers/cookies_serializer.rb
439
- - spec/dummy/config/initializers/filter_parameter_logging.rb
440
- - spec/dummy/config/initializers/i18n.rb
441
- - spec/dummy/config/initializers/inflections.rb
442
- - spec/dummy/config/initializers/mime_types.rb
443
- - spec/dummy/config/initializers/simple_form.rb
444
- - spec/dummy/config/initializers/simple_form_bootstrap.rb
445
- - spec/dummy/config/initializers/wrap_parameters.rb
446
- - spec/dummy/config/locales/en.yml
447
- - spec/dummy/config/locales/simple_form.en.yml
448
- - spec/dummy/config/puma.rb
449
- - spec/dummy/config/routes.rb
450
- - spec/dummy/config/spring.rb
451
- - spec/dummy/config/storage.yml
452
- - spec/dummy/db/development.sqlite3
453
- - spec/dummy/db/test.sqlite3
454
- - spec/dummy/lib/templates/haml/scaffold/_form.html.haml
455
- - spec/dummy/log/development.log
456
- - spec/dummy/package.json
457
- - spec/dummy/public/404.html
458
- - spec/dummy/public/422.html
459
- - spec/dummy/public/500.html
460
- - spec/dummy/public/apple-touch-icon-precomposed.png
461
- - spec/dummy/public/apple-touch-icon.png
462
- - spec/dummy/public/favicon.ico
463
- - spec/dummy/tmp/development_secret.txt
464
- - spec/rails_helper.rb
465
- - spec/spec_helper.rb
466
- - spec/support/capybara.rb
467
- - spec/support/factory_bot.rb
468
- - spec/support/pry-rails.rb
469
- - spec/support/rao-shoulda_matchers.rb
470
- - spec/support/shoulda_matchers.rb
471
404
  homepage: https://github.com/content-management-on-rails
472
405
  licenses:
473
406
  - MIT
@@ -487,7 +420,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
487
420
  - !ruby/object:Gem::Version
488
421
  version: 1.3.1
489
422
  requirements: []
490
- rubygems_version: 3.1.2
423
+ rubygems_version: 3.1.4
491
424
  signing_key:
492
425
  specification_version: 4
493
426
  summary: Cmor Core Module.
@@ -1,6 +0,0 @@
1
- # Add your own tasks in files placed in lib/tasks ending in .rake,
2
- # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
-
4
- require_relative 'config/application'
5
-
6
- Rails.application.load_tasks
@@ -1,3 +0,0 @@
1
- //= link_tree ../images
2
- //= link_directory ../javascripts .js
3
- //= link_directory ../stylesheets .css
@@ -1,15 +0,0 @@
1
- // This is a manifest file that'll be compiled into application.js, which will include all the files
2
- // listed below.
3
- //
4
- // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
- // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
- //
7
- // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
- // compiled file. JavaScript code in this file should be added after the last require_* statement.
9
- //
10
- // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
- // about supported directives.
12
- //
13
- //= require rails-ujs
14
- //= require activestorage
15
- //= require_tree .
@@ -1,13 +0,0 @@
1
- // Action Cable provides the framework to deal with WebSockets in Rails.
2
- // You can generate new channels where WebSocket features live using the `rails generate channel` command.
3
- //
4
- //= require action_cable
5
- //= require_self
6
- //= require_tree ./channels
7
-
8
- (function() {
9
- this.App || (this.App = {});
10
-
11
- App.cable = ActionCable.createConsumer();
12
-
13
- }).call(this);
@@ -1,15 +0,0 @@
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. Styles in this file should be added after the last require_* statement.
11
- * It is generally better to create a new file per style scope.
12
- *
13
- *= require_tree .
14
- *= require_self
15
- */