optimacms 0.3.29 → 0.3.30

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f0b9b2205c8bc82968042a97682ad648e2a08953
4
- data.tar.gz: 02bd91769a57bae77c8ed131abcbdacf0e1c61fa
3
+ metadata.gz: c6fdec2c23c6435690b0c3240d51e4ce6a397a1f
4
+ data.tar.gz: 9d0e9eacc8f931f4aa276846e33c1d04d10177ef
5
5
  SHA512:
6
- metadata.gz: 13b733bdfcadfe1dcd9eae255cb35668018ef4dff2000d45e05c83b33b670043478017d754b64396139ce1a60ce0d678fc654983d7a4d077d7513f91919d5b8e
7
- data.tar.gz: f6ac5bae985b6110ebb3630f3c541acb2392f6fc464a21f33051d7e2f37e3bf7df62b890b2f1fdfe075cdbab246c799155ec2f2a76e93e866d0cc8dcd969c9aa
6
+ metadata.gz: 7919b01e9d0f0dda7ecc0dae7961f42026d6e4ef272a1f90a8371ad4a8cce3cdda3ccfac403600866a285e5d85bc7452d995fa7939382f55a658b95ad0cb7835
7
+ data.tar.gz: 1f485c322c93f1dcc45fedb83409b1e7b860452247a22ade0d895cc9debce5d9882e04a732f7097ee3f80c46ee129d1af6f77bbbc2a7db8591421ce3d3442f8c
@@ -11,7 +11,7 @@ module Optimacms
11
11
  end
12
12
 
13
13
  def elfinder
14
- dirpath = Optimacms.files_dir_path
14
+ dirpath = Optimacms.config.files_dir_path
15
15
  rootpath = File.join(Rails.public_path, dirpath)
16
16
  rooturl = '/'+dirpath
17
17
 
@@ -9,7 +9,7 @@ module Optimacms
9
9
  end
10
10
 
11
11
  def elfinder
12
- dirpath = Optimacms.files_dir_path
12
+ dirpath = Optimacms.config.files_dir_path
13
13
  rootpath = File.join(Rails.public_path, dirpath)
14
14
  rooturl = '/'+dirpath
15
15
 
@@ -38,7 +38,7 @@ Base dir: #{Optimacms::BackupMetadata::Backup.dir_backups}
38
38
  $('#status_commands').html("Sending...");
39
39
 
40
40
  $.ajax({
41
- url: "/#{Optimacms.admin_namespace}/backup_metadata/backup/?cmd=" + cmd,
41
+ url: "/#{Optimacms.config.admin_namespace}/backup_metadata/backup/?cmd=" + cmd,
42
42
  data: {},
43
43
  type: "GET",
44
44
  dataType: "json",
@@ -95,7 +95,7 @@ Directory: #{@backup_basedir}
95
95
  obj_log.html("updating...");
96
96
 
97
97
  $.ajax({
98
- url: "/#{Optimacms.admin_namespace}/backup_metadata/import_page/?backup_dir=#{@dirname}&filename="+filename+"&cmd=" + cmd,
98
+ url: "/#{Optimacms.config.admin_namespace}/backup_metadata/import_page/?backup_dir=#{@dirname}&filename="+filename+"&cmd=" + cmd,
99
99
  data: {},
100
100
  type: "GET",
101
101
  dataType: "json",
@@ -89,7 +89,7 @@ Directory: #{@backup_basedir}
89
89
  obj_log.html("updating...");
90
90
 
91
91
  $.ajax({
92
- url: "/#{Optimacms.admin_namespace}/backup_metadata/import_template/?backup_dir=#{@dirname}&filename="+filename+"&cmd=" + cmd,
92
+ url: "/#{Optimacms.config.admin_namespace}/backup_metadata/import_template/?backup_dir=#{@dirname}&filename="+filename+"&cmd=" + cmd,
93
93
  data: {},
94
94
  type: "GET",
95
95
  dataType: "json",
@@ -50,7 +50,7 @@ Back to admin:
50
50
 
51
51
  var elf = $('#elfinder').elfinder({
52
52
  // set your elFinder options here
53
- url: '/<%=Optimacms.admin_namespace%>/media_elfinder', // connector URL
53
+ url: '/<%=Optimacms.config.admin_namespace%>/media_elfinder', // connector URL
54
54
  transport : new elFinderSupportVer1(),
55
55
 
56
56
  getFileCallback: function(file) { // editor callback
@@ -3,7 +3,7 @@
3
3
  %button.navbar-toggler.navbar-toggler-right{"aria-controls" => "navbarTopmenu", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarTopmenu", "data-toggle" => "collapse", :type => "button"}
4
4
  %span.navbar-toggler-icon
5
5
 
6
- =link_to '/'+Optimacms.admin_namespace, class: "navbar-brand text-white" do
6
+ =link_to '/'+Optimacms.config.admin_namespace, class: "navbar-brand text-white" do
7
7
  =fa_icon 'cube'
8
8
  OptimaCMS
9
9
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  %ul#leftmenu.nav.nav-list.flex-column
3
3
  %li.nav-item
4
- =link_to '/'+Optimacms.admin_namespace+'/dashboard', class: "nav-link active" do
4
+ =link_to '/'+Optimacms.config.admin_namespace+'/dashboard', class: "nav-link active" do
5
5
  Dashboard
6
6
 
7
7
  - Optimacms::AdminMenu::AdminMenu.get_menu.each_with_index do |m, ind|
@@ -3,7 +3,7 @@ Optimacms::Engine.routes.draw do
3
3
  get 'dev/:action', to: 'dev#action'
4
4
 
5
5
  # admin
6
- scope '/'+Optimacms.admin_namespace, module: "admin" do
6
+ scope '/'+Optimacms.config.admin_namespace, module: "admin" do
7
7
  #devise_for :users, { class_name: "Optimacms::User", module: :devise }
8
8
 
9
9
  get '/' => 'dashboard#index', as: :dashboard
@@ -1,7 +1,27 @@
1
1
  require 'devise'
2
2
  require "optimacms/engine"
3
+ require "optimacms/configuration"
3
4
 
4
5
  module Optimacms
6
+ class << self
7
+ attr_accessor :config
8
+ end
9
+
10
+ def self.config
11
+ @config ||= Configuration.new
12
+ end
13
+
14
+ def self.reset
15
+ @config = Configuration.new
16
+ end
17
+
18
+ def self.configure
19
+ yield(config) if block_given?
20
+ end
21
+
22
+
23
+ # OLD. will be removed in new versions
24
+ =begin
5
25
  #
6
26
  mattr_accessor :files_dir_path
7
27
  def files_dir_path
@@ -22,11 +42,8 @@ module Optimacms
22
42
  @@admin_namespace || 'admin'
23
43
  end
24
44
 
45
+ =end
46
+
25
47
 
26
- ### backup metadata
27
- mattr_accessor :backup_metadata
28
- def backup_metadata
29
- @@backup_metadata || {}
30
- end
31
48
 
32
49
  end
@@ -238,7 +238,7 @@ module Optimacms
238
238
 
239
239
 
240
240
  def self.dir_backups
241
- Optimacms.backup_metadata[:dir_base]
241
+ Optimacms.config.metadata['backup_dir_base']
242
242
 
243
243
  end
244
244
 
@@ -0,0 +1,26 @@
1
+ module Optimacms
2
+ class Configuration
3
+ attr_accessor :yaml_config
4
+ attr_accessor :files_dir_path,
5
+ :main_namespace, :admin_namespace,
6
+ :metadata
7
+
8
+
9
+ def initialize
10
+ load_config
11
+
12
+ @files_dir_path = @yaml_config['files_dir_path'] || 'uploads'
13
+ @main_namespace = @yaml_config['main_namespace'] || ''
14
+ @admin_namespace = @yaml_config['admin_namespace'] || 'admin'
15
+
16
+ # metadata
17
+ @metadata = @yaml_config['metadata']
18
+ end
19
+
20
+ def load_config
21
+ @yaml_config = Rails.application.config_for(:optimacms)
22
+
23
+ @yaml_config ||= {}
24
+ end
25
+ end
26
+ end
@@ -7,7 +7,7 @@ module Optimacms
7
7
  def self.config
8
8
  {
9
9
  class_name: "Optimacms::CmsAdminUser",
10
- path: '/'+Optimacms.main_namespace+'/'+Optimacms.admin_namespace,
10
+ path: '/'+Optimacms.config.main_namespace+'/'+Optimacms.config.admin_namespace,
11
11
  #path: ActiveAdmin.application.default_namespace || "/",
12
12
  controllers: Optimacms::Devise.controllers,
13
13
  path_names: { sign_in: 'login', sign_out: "logout" },
@@ -1,3 +1,3 @@
1
1
  module Optimacms
2
- VERSION = "0.3.29"
2
+ VERSION = "0.3.30"
3
3
  end
@@ -1,6 +1,6 @@
1
1
  %h2 Admin
2
2
  %ul
3
- %li= link_to 'admin area', '/'+Optimacms.admin_namespace
3
+ %li= link_to 'admin area', '/'+Optimacms.config.admin_namespace
4
4
 
5
5
  %h2 Users
6
6
  %ul
@@ -1,3 +1,14 @@
1
+ Optimacms.config do |c|
2
+ c.main_namespace = ''
3
+ c.admin_namespace = 'admin'
4
+ c.files_dir_path = 'img'
5
+
6
+ end
7
+
8
+
9
+
10
+ # OLD. for version < 0.3.30
11
+ =begin
1
12
  Optimacms.main_namespace = '' # blank or any like 'cms'
2
13
  Optimacms.admin_namespace = 'admin'
3
14
  Optimacms.files_dir_path = 'img'
@@ -5,3 +16,4 @@ Optimacms.files_dir_path = 'img'
5
16
  Optimacms.backup_metadata = {
6
17
  dir_base: "/data/backups/cms/metadata"
7
18
  }
19
+ =end
@@ -0,0 +1,19 @@
1
+ default: &default
2
+ main_namespace: ''
3
+ admin_namespace: 'admin'
4
+ files_dir_path: 'img'
5
+
6
+ development:
7
+ <<: *default
8
+ metadata:
9
+ backup_dir_base: "/data/backups/optimacms/local/metadata"
10
+
11
+
12
+ test:
13
+ <<: *default
14
+
15
+ production:
16
+ <<: *default
17
+
18
+ metadata:
19
+ backup_dir_base: "/path/on/server/to/metadata"
@@ -14,7 +14,7 @@ Rails.application.routes.draw do
14
14
 
15
15
 
16
16
  # extend admin area
17
- scope '/'+Optimacms.main_namespace+'/'+Optimacms.admin_namespace, module: "optimacms" do
17
+ scope '/'+Optimacms.config.main_namespace+'/'+Optimacms.config.admin_namespace, module: "optimacms" do
18
18
  namespace :admin do
19
19
  resources :news do
20
20
  collection do
@@ -26,7 +26,7 @@ Rails.application.routes.draw do
26
26
 
27
27
 
28
28
  # the last!!!
29
- mount Optimacms::Engine => '/'+Optimacms.main_namespace
29
+ mount Optimacms::Engine => '/'+Optimacms.config.main_namespace
30
30
 
31
31
  #
32
32
  root to: 'home#index'
@@ -20790,3 +20790,461 @@ Processing by Optimacms::Admin::BackupMetadataController#reviewimport_pages as H
20790
20790
  Completed 200 OK in 6074ms (Views: 252.2ms | ActiveRecord: 76.6ms)
20791
20791
 
20792
20792
 
20793
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
20794
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
20795
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/config/routes.rb:3)
20796
+ Started GET "/admin/pages" for 127.0.0.1 at 2018-04-01 01:17:19 +0300
20797
+  (0.4ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
20798
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
20799
+ Processing by Optimacms::Admin::PagesController#index as HTML
20800
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
20801
+ Optimacms::Language Load (0.4ms) SELECT `cms_languages`.* FROM `cms_languages`
20802
+ Optimacms::Page Load (0.3ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`id` = 197 LIMIT 1
20803
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main
20804
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_text.html.haml (2607.6ms)
20805
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (2614.9ms)
20806
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (8.5ms)
20807
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (9.8ms)
20808
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_fields.html.haml (2632.0ms)
20809
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear.html.haml (4.9ms)
20810
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (10.9ms)
20811
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form_inline.html.haml (2652.7ms)
20812
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form.html.haml (2659.7ms)
20813
+ Optimacms::Page Load (0.4ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`parent_id` = 197 AND (1=1 ) ORDER BY created_at desc LIMIT 10 OFFSET 0
20814
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main (2722.9ms)
20815
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
20816
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (15.6ms)
20817
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (27.2ms)
20818
+ Completed 500 Internal Server Error in 2859ms (ActiveRecord: 5.7ms)
20819
+
20820
+
20821
+
20822
+ ActionView::Template::Error (no implicit conversion of nil into String):
20823
+ 3: %button.navbar-toggler.navbar-toggler-right{"aria-controls" => "navbarTopmenu", "aria-expanded" => "false", "aria-label" => "Toggle navigation", "data-target" => "#navbarTopmenu", "data-toggle" => "collapse", :type => "button"}
20824
+ 4: %span.navbar-toggler-icon
20825
+ 5:
20826
+ 6: =link_to '/'+Optimacms.admin_namespace, class: "navbar-brand text-white" do
20827
+ 7: =fa_icon 'cube'
20828
+ 8: OptimaCMS
20829
+ 9:
20830
+
20831
+ /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml:6:in `+'
20832
+ /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml:6:in `__data_projects_myrails_cms_site_app_views_optimacms_admin_shared__header_html_haml__2061030663827350246_45075980'
20833
+ actionview (5.1.3) lib/action_view/template.rb:157:in `block in render'
20834
+ activesupport (5.1.3) lib/active_support/notifications.rb:168:in `instrument'
20835
+ actionview (5.1.3) lib/action_view/template.rb:352:in `instrument_render_template'
20836
+ actionview (5.1.3) lib/action_view/template.rb:155:in `render'
20837
+ actionview (5.1.3) lib/action_view/renderer/partial_renderer.rb:342:in `block in render_partial'
20838
+ actionview (5.1.3) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
20839
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `block in instrument'
20840
+ activesupport (5.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
20841
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `instrument'
20842
+ actionview (5.1.3) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
20843
+ actionview (5.1.3) lib/action_view/renderer/partial_renderer.rb:331:in `render_partial'
20844
+ actionview (5.1.3) lib/action_view/renderer/partial_renderer.rb:310:in `render'
20845
+ actionview (5.1.3) lib/action_view/renderer/renderer.rb:47:in `render_partial'
20846
+ actionview (5.1.3) lib/action_view/helpers/rendering_helper.rb:35:in `render'
20847
+ haml (5.0.4) lib/haml/helpers/action_view_mods.rb:12:in `block in render'
20848
+ haml (5.0.4) lib/haml/helpers.rb:92:in `non_haml'
20849
+ haml (5.0.4) lib/haml/helpers/action_view_mods.rb:12:in `render'
20850
+ /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml:2:in `block in __data_projects_myrails_cms_site_app_views_optimacms_admin_layouts_basic_html_haml___777517770649212624_45877640'
20851
+ haml (5.0.4) lib/haml/helpers.rb:382:in `block in capture_haml'
20852
+ haml (5.0.4) lib/haml/helpers.rb:667:in `with_haml_buffer'
20853
+ haml (5.0.4) lib/haml/helpers.rb:378:in `capture_haml'
20854
+ haml (5.0.4) lib/haml/helpers/xss_mods.rb:62:in `capture_haml_with_haml_xss'
20855
+ haml (5.0.4) lib/haml/helpers/action_view_mods.rb:45:in `capture_with_haml'
20856
+ actionview (5.1.3) lib/action_view/helpers/capture_helper.rb:153:in `content_for'
20857
+ /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml:1:in `__data_projects_myrails_cms_site_app_views_optimacms_admin_layouts_basic_html_haml___777517770649212624_45877640'
20858
+ actionview (5.1.3) lib/action_view/template.rb:157:in `block in render'
20859
+ activesupport (5.1.3) lib/active_support/notifications.rb:168:in `instrument'
20860
+ actionview (5.1.3) lib/action_view/template.rb:352:in `instrument_render_template'
20861
+ actionview (5.1.3) lib/action_view/template.rb:155:in `render'
20862
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:52:in `block (2 levels) in render_template'
20863
+ actionview (5.1.3) lib/action_view/renderer/abstract_renderer.rb:42:in `block in instrument'
20864
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `block in instrument'
20865
+ activesupport (5.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
20866
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `instrument'
20867
+ actionview (5.1.3) lib/action_view/renderer/abstract_renderer.rb:41:in `instrument'
20868
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:51:in `block in render_template'
20869
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
20870
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:50:in `render_template'
20871
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:14:in `render'
20872
+ actionview (5.1.3) lib/action_view/renderer/renderer.rb:42:in `render_template'
20873
+ actionview (5.1.3) lib/action_view/renderer/renderer.rb:23:in `render'
20874
+ actionview (5.1.3) lib/action_view/helpers/rendering_helper.rb:32:in `render'
20875
+ haml (5.0.4) lib/haml/helpers/action_view_mods.rb:12:in `block in render'
20876
+ haml (5.0.4) lib/haml/helpers.rb:92:in `non_haml'
20877
+ haml (5.0.4) lib/haml/helpers/action_view_mods.rb:12:in `render'
20878
+ /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/main.html.haml:5:in `__data_projects_myrails_cms_site_app_views_optimacms_admin_layouts_main_html_haml__2561103437491994750_69824058816800'
20879
+ actionview (5.1.3) lib/action_view/template.rb:157:in `block in render'
20880
+ activesupport (5.1.3) lib/active_support/notifications.rb:168:in `instrument'
20881
+ actionview (5.1.3) lib/action_view/template.rb:352:in `instrument_render_template'
20882
+ actionview (5.1.3) lib/action_view/template.rb:155:in `render'
20883
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:64:in `render_with_layout'
20884
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:50:in `render_template'
20885
+ actionview (5.1.3) lib/action_view/renderer/template_renderer.rb:14:in `render'
20886
+ actionview (5.1.3) lib/action_view/renderer/renderer.rb:42:in `render_template'
20887
+ actionview (5.1.3) lib/action_view/renderer/renderer.rb:23:in `render'
20888
+ actionview (5.1.3) lib/action_view/rendering.rb:103:in `_render_template'
20889
+ actionpack (5.1.3) lib/action_controller/metal/streaming.rb:217:in `_render_template'
20890
+ actionview (5.1.3) lib/action_view/rendering.rb:83:in `render_to_body'
20891
+ actionpack (5.1.3) lib/action_controller/metal/rendering.rb:52:in `render_to_body'
20892
+ actionpack (5.1.3) lib/action_controller/metal/renderers.rb:141:in `render_to_body'
20893
+ actionpack (5.1.3) lib/abstract_controller/rendering.rb:24:in `render'
20894
+ actionpack (5.1.3) lib/action_controller/metal/rendering.rb:36:in `render'
20895
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
20896
+ activesupport (5.1.3) lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
20897
+ /home/mmx/.rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/benchmark.rb:308:in `realtime'
20898
+ activesupport (5.1.3) lib/active_support/core_ext/benchmark.rb:12:in `ms'
20899
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:44:in `block in render'
20900
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
20901
+ activerecord (5.1.3) lib/active_record/railties/controller_runtime.rb:29:in `cleanup_view_runtime'
20902
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:43:in `render'
20903
+ actionpack (5.1.3) lib/action_controller/metal/implicit_render.rb:33:in `default_render'
20904
+ /data/projects/myrails/cms/site/lib/optimacms/mycontroller.rb:33:in `default_render'
20905
+ actionpack (5.1.3) lib/action_controller/metal/basic_implicit_render.rb:4:in `block in send_action'
20906
+ actionpack (5.1.3) lib/action_controller/metal/basic_implicit_render.rb:4:in `tap'
20907
+ actionpack (5.1.3) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
20908
+ actionpack (5.1.3) lib/abstract_controller/base.rb:186:in `process_action'
20909
+ actionpack (5.1.3) lib/action_controller/metal/rendering.rb:30:in `process_action'
20910
+ actionpack (5.1.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
20911
+ activesupport (5.1.3) lib/active_support/callbacks.rb:131:in `run_callbacks'
20912
+ actionpack (5.1.3) lib/abstract_controller/callbacks.rb:19:in `process_action'
20913
+ actionpack (5.1.3) lib/action_controller/metal/rescue.rb:20:in `process_action'
20914
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
20915
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `block in instrument'
20916
+ activesupport (5.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
20917
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `instrument'
20918
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
20919
+ actionpack (5.1.3) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
20920
+ activerecord (5.1.3) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
20921
+ actionpack (5.1.3) lib/abstract_controller/base.rb:124:in `process'
20922
+ actionview (5.1.3) lib/action_view/rendering.rb:30:in `process'
20923
+ actionpack (5.1.3) lib/action_controller/metal.rb:189:in `dispatch'
20924
+ actionpack (5.1.3) lib/action_controller/metal.rb:253:in `dispatch'
20925
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
20926
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:31:in `serve'
20927
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
20928
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
20929
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
20930
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
20931
+ railties (5.1.3) lib/rails/engine.rb:522:in `call'
20932
+ railties (5.1.3) lib/rails/railtie.rb:185:in `public_send'
20933
+ railties (5.1.3) lib/rails/railtie.rb:185:in `method_missing'
20934
+ actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
20935
+ actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:46:in `serve'
20936
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
20937
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
20938
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
20939
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
20940
+ warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
20941
+ warden (1.2.7) lib/warden/manager.rb:35:in `catch'
20942
+ warden (1.2.7) lib/warden/manager.rb:35:in `call'
20943
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
20944
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
20945
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
20946
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
20947
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
20948
+ actionpack (5.1.3) lib/action_dispatch/middleware/cookies.rb:613:in `call'
20949
+ activerecord (5.1.3) lib/active_record/migration.rb:556:in `call'
20950
+ actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
20951
+ activesupport (5.1.3) lib/active_support/callbacks.rb:97:in `run_callbacks'
20952
+ actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
20953
+ actionpack (5.1.3) lib/action_dispatch/middleware/executor.rb:12:in `call'
20954
+ actionpack (5.1.3) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
20955
+ actionpack (5.1.3) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
20956
+ railties (5.1.3) lib/rails/rack/logger.rb:36:in `call_app'
20957
+ railties (5.1.3) lib/rails/rack/logger.rb:24:in `block in call'
20958
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `block in tagged'
20959
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:26:in `tagged'
20960
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `tagged'
20961
+ railties (5.1.3) lib/rails/rack/logger.rb:24:in `call'
20962
+ actionpack (5.1.3) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
20963
+ request_store (1.4.0) lib/request_store/middleware.rb:19:in `call'
20964
+ actionpack (5.1.3) lib/action_dispatch/middleware/request_id.rb:25:in `call'
20965
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
20966
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
20967
+ activesupport (5.1.3) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
20968
+ actionpack (5.1.3) lib/action_dispatch/middleware/executor.rb:12:in `call'
20969
+ actionpack (5.1.3) lib/action_dispatch/middleware/static.rb:125:in `call'
20970
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
20971
+ railties (5.1.3) lib/rails/engine.rb:522:in `call'
20972
+ puma (3.11.2) lib/puma/configuration.rb:225:in `call'
20973
+ puma (3.11.2) lib/puma/server.rb:624:in `handle_request'
20974
+ puma (3.11.2) lib/puma/server.rb:438:in `process_client'
20975
+ puma (3.11.2) lib/puma/server.rb:302:in `block in run'
20976
+ puma (3.11.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
20977
+ Started GET "/admin/pages" for 127.0.0.1 at 2018-04-01 01:18:24 +0300
20978
+ Processing by Optimacms::Admin::PagesController#index as HTML
20979
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
20980
+ Optimacms::Page Load (0.5ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`id` = 197 LIMIT 1
20981
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main
20982
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_text.html.haml (9.3ms)
20983
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (16.8ms)
20984
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (7.8ms)
20985
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (9.0ms)
20986
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_fields.html.haml (32.9ms)
20987
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear.html.haml (4.7ms)
20988
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (10.4ms)
20989
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form_inline.html.haml (53.1ms)
20990
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form.html.haml (60.2ms)
20991
+ Optimacms::Page Load (0.4ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`parent_id` = 197 AND (1=1 ) ORDER BY created_at desc LIMIT 10 OFFSET 0
20992
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main (99.8ms)
20993
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
20994
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_menu_user.html.haml (19.3ms)
20995
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (34.5ms)
20996
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (27.8ms)
20997
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (7.3ms)
20998
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (12.8ms)
20999
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (5.9ms)
21000
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (15.7ms)
21001
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml
21002
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (732.7ms)
21003
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (851.6ms)
21004
+ Completed 200 OK in 975ms (Views: 962.3ms | ActiveRecord: 1.4ms)
21005
+
21006
+
21007
+ Started GET "/assets/optimacms/admin.self-0ebdba35ec3fe128780dfc8ef8cd78df1bfe1eb96c446e5ff1e3e9d3dd9ce349.css?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21008
+ Started GET "/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21009
+ Started GET "/assets/bootstrap-autocomplete-input.min.self-a62d5c85f65f9f4101234936f747c1d06ed14c92044823ac33003100ec8cc267.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21010
+ Started GET "/assets/bootstrap/dist/js/bootstrap.self-c6e456b38cd9e2e02d23a831f5d5230bb40776f3edb3ef80bdbaaa06aeae961b.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21011
+ Started GET "/assets/optimacms/admin.self-79488488398f5f5aed236dd6e9f914599370d04dfe70fda61b8c83bf739b1088.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21012
+ Started GET "/assets/popper.js/dist/umd/popper.self-9fc1c859ae063822b5e05dc1b08f3792727a7551143955e569d5875e89132b36.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21013
+ Started GET "/assets/jquery2.self-25ca496239ae8641a09627c8aace5863e7676e465fbb4ce81bc7eb78c4d15627.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21014
+ Started GET "/assets/bootstrap3-typeahead.min.self-2ce9c5adac4a94e8444b0754fdd5fe2b4180af0ca6503ba9b347333d62c48381.js?body=1" for 127.0.0.1 at 2018-04-01 01:18:25 +0300
21015
+ Started GET "/admin/templates" for 127.0.0.1 at 2018-04-01 01:18:27 +0300
21016
+ Processing by Optimacms::Admin::TemplatesController#index as HTML
21017
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21018
+ Optimacms::Template Load (0.3ms) SELECT `cms_templates`.* FROM `cms_templates` WHERE `cms_templates`.`id` = 0 LIMIT 1
21019
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/templates/index.html.haml within optimacms/admin/layouts/main
21020
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_text.html.haml (8.7ms)
21021
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (15.8ms)
21022
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (7.9ms)
21023
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (9.0ms)
21024
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_fields.html.haml (31.5ms)
21025
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear.html.haml (4.7ms)
21026
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (10.7ms)
21027
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form_inline.html.haml (51.7ms)
21028
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form.html.haml (58.1ms)
21029
+ Optimacms::Template Load (1.4ms) SELECT `cms_templates`.* FROM `cms_templates` WHERE `cms_templates`.`ancestry` IS NULL AND (1=1 ) ORDER BY title asc LIMIT 10 OFFSET 0
21030
+  (0.4ms) SELECT COUNT(*) FROM `cms_templates` WHERE `cms_templates`.`ancestry` IS NULL AND (1=1 )
21031
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/templates/index.html.haml within optimacms/admin/layouts/main (139.6ms)
21032
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
21033
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_menu_user.html.haml (18.9ms)
21034
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (33.6ms)
21035
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (24.6ms)
21036
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (7.5ms)
21037
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (11.5ms)
21038
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (4.8ms)
21039
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (14.6ms)
21040
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml
21041
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (89.9ms)
21042
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (202.4ms)
21043
+ Completed 200 OK in 364ms (Views: 351.8ms | ActiveRecord: 2.5ms)
21044
+
21045
+
21046
+ Started GET "/admin/pages" for 127.0.0.1 at 2018-04-01 01:18:28 +0300
21047
+ Processing by Optimacms::Admin::PagesController#index as HTML
21048
+ Optimacms::CmsAdminUser Load (0.6ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21049
+ Optimacms::Page Load (0.5ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`id` = 197 LIMIT 1
21050
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main
21051
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_text.html.haml (9.0ms)
21052
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (16.5ms)
21053
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/fields_simple_form/_hidden.html.haml (8.4ms)
21054
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_field_simple_form.html.haml (9.6ms)
21055
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_fields.html.haml (33.0ms)
21056
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear.html.haml (5.2ms)
21057
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_buttons_apply_clear_inline.html.haml (11.1ms)
21058
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form_inline.html.haml (53.8ms)
21059
+ Rendered /home/mmx/.rvm/gems/ruby-2.4.3/gems/simple_search_filter-0.1.1/app/views/simple_search_filter/_form.html.haml (60.8ms)
21060
+ Optimacms::Page Load (0.4ms) SELECT `cms_pages`.* FROM `cms_pages` WHERE `cms_pages`.`parent_id` = 197 AND (1=1 ) ORDER BY created_at desc LIMIT 10 OFFSET 0
21061
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/pages/index.html.haml within optimacms/admin/layouts/main (102.2ms)
21062
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
21063
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_menu_user.html.haml (17.0ms)
21064
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (32.4ms)
21065
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (27.9ms)
21066
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (7.8ms)
21067
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (11.4ms)
21068
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (5.3ms)
21069
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (15.1ms)
21070
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml
21071
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (88.4ms)
21072
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (204.5ms)
21073
+ Completed 200 OK in 338ms (Views: 319.9ms | ActiveRecord: 1.6ms)
21074
+
21075
+
21076
+ Started GET "/admin/mediafiles" for 127.0.0.1 at 2018-04-01 01:18:29 +0300
21077
+ Processing by Optimacms::Admin::MediafilesController#index as HTML
21078
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21079
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/mediafiles/index.html.erb within optimacms/admin/layouts/blank
21080
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/mediafiles/index.html.erb within optimacms/admin/layouts/blank (1.5ms)
21081
+ Completed 200 OK in 19ms (Views: 11.4ms | ActiveRecord: 0.4ms)
21082
+
21083
+
21084
+ Started GET "/admin/media_elfinder?cmd=open&target=Lg&init=1&tree=1&_=1522534709600" for 127.0.0.1 at 2018-04-01 01:18:29 +0300
21085
+ Processing by Optimacms::Admin::MediafilesController#elfinder as JSON
21086
+ Parameters: {"cmd"=>"open", "target"=>"Lg", "init"=>"1", "tree"=>"1", "_"=>"1522534709600"}
21087
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21088
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.4ms)
21089
+
21090
+
21091
+
21092
+ TypeError (no implicit conversion of nil into String):
21093
+
21094
+ /data/projects/myrails/cms/site/app/controllers/optimacms/admin/mediafiles_controller.rb:15:in `join'
21095
+ /data/projects/myrails/cms/site/app/controllers/optimacms/admin/mediafiles_controller.rb:15:in `elfinder'
21096
+ actionpack (5.1.3) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
21097
+ actionpack (5.1.3) lib/abstract_controller/base.rb:186:in `process_action'
21098
+ actionpack (5.1.3) lib/action_controller/metal/rendering.rb:30:in `process_action'
21099
+ actionpack (5.1.3) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
21100
+ activesupport (5.1.3) lib/active_support/callbacks.rb:131:in `run_callbacks'
21101
+ actionpack (5.1.3) lib/abstract_controller/callbacks.rb:19:in `process_action'
21102
+ actionpack (5.1.3) lib/action_controller/metal/rescue.rb:20:in `process_action'
21103
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
21104
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `block in instrument'
21105
+ activesupport (5.1.3) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
21106
+ activesupport (5.1.3) lib/active_support/notifications.rb:166:in `instrument'
21107
+ actionpack (5.1.3) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
21108
+ actionpack (5.1.3) lib/action_controller/metal/params_wrapper.rb:252:in `process_action'
21109
+ activerecord (5.1.3) lib/active_record/railties/controller_runtime.rb:22:in `process_action'
21110
+ actionpack (5.1.3) lib/abstract_controller/base.rb:124:in `process'
21111
+ actionview (5.1.3) lib/action_view/rendering.rb:30:in `process'
21112
+ actionpack (5.1.3) lib/action_controller/metal.rb:189:in `dispatch'
21113
+ actionpack (5.1.3) lib/action_controller/metal.rb:253:in `dispatch'
21114
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:49:in `dispatch'
21115
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:31:in `serve'
21116
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
21117
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
21118
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
21119
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
21120
+ railties (5.1.3) lib/rails/engine.rb:522:in `call'
21121
+ railties (5.1.3) lib/rails/railtie.rb:185:in `public_send'
21122
+ railties (5.1.3) lib/rails/railtie.rb:185:in `method_missing'
21123
+ actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:17:in `block in <class:Constraints>'
21124
+ actionpack (5.1.3) lib/action_dispatch/routing/mapper.rb:46:in `serve'
21125
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:46:in `block in serve'
21126
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `each'
21127
+ actionpack (5.1.3) lib/action_dispatch/journey/router.rb:33:in `serve'
21128
+ actionpack (5.1.3) lib/action_dispatch/routing/route_set.rb:834:in `call'
21129
+ warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
21130
+ warden (1.2.7) lib/warden/manager.rb:35:in `catch'
21131
+ warden (1.2.7) lib/warden/manager.rb:35:in `call'
21132
+ rack (2.0.4) lib/rack/etag.rb:25:in `call'
21133
+ rack (2.0.4) lib/rack/conditional_get.rb:25:in `call'
21134
+ rack (2.0.4) lib/rack/head.rb:12:in `call'
21135
+ rack (2.0.4) lib/rack/session/abstract/id.rb:232:in `context'
21136
+ rack (2.0.4) lib/rack/session/abstract/id.rb:226:in `call'
21137
+ actionpack (5.1.3) lib/action_dispatch/middleware/cookies.rb:613:in `call'
21138
+ activerecord (5.1.3) lib/active_record/migration.rb:556:in `call'
21139
+ actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
21140
+ activesupport (5.1.3) lib/active_support/callbacks.rb:97:in `run_callbacks'
21141
+ actionpack (5.1.3) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
21142
+ actionpack (5.1.3) lib/action_dispatch/middleware/executor.rb:12:in `call'
21143
+ actionpack (5.1.3) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
21144
+ actionpack (5.1.3) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
21145
+ railties (5.1.3) lib/rails/rack/logger.rb:36:in `call_app'
21146
+ railties (5.1.3) lib/rails/rack/logger.rb:24:in `block in call'
21147
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `block in tagged'
21148
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:26:in `tagged'
21149
+ activesupport (5.1.3) lib/active_support/tagged_logging.rb:69:in `tagged'
21150
+ railties (5.1.3) lib/rails/rack/logger.rb:24:in `call'
21151
+ actionpack (5.1.3) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
21152
+ request_store (1.4.0) lib/request_store/middleware.rb:19:in `call'
21153
+ actionpack (5.1.3) lib/action_dispatch/middleware/request_id.rb:25:in `call'
21154
+ rack (2.0.4) lib/rack/method_override.rb:22:in `call'
21155
+ rack (2.0.4) lib/rack/runtime.rb:22:in `call'
21156
+ activesupport (5.1.3) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
21157
+ actionpack (5.1.3) lib/action_dispatch/middleware/executor.rb:12:in `call'
21158
+ actionpack (5.1.3) lib/action_dispatch/middleware/static.rb:125:in `call'
21159
+ rack (2.0.4) lib/rack/sendfile.rb:111:in `call'
21160
+ railties (5.1.3) lib/rails/engine.rb:522:in `call'
21161
+ puma (3.11.2) lib/puma/configuration.rb:225:in `call'
21162
+ puma (3.11.2) lib/puma/server.rb:624:in `handle_request'
21163
+ puma (3.11.2) lib/puma/server.rb:438:in `process_client'
21164
+ puma (3.11.2) lib/puma/server.rb:302:in `block in run'
21165
+ puma (3.11.2) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
21166
+ Started GET "/admin/mediafiles" for 127.0.0.1 at 2018-04-01 01:18:59 +0300
21167
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
21168
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/config/routes.rb:3)
21169
+ Processing by Optimacms::Admin::MediafilesController#index as HTML
21170
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21171
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/mediafiles/index.html.erb within optimacms/admin/layouts/blank
21172
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/mediafiles/index.html.erb within optimacms/admin/layouts/blank (1.3ms)
21173
+ Completed 200 OK in 39ms (Views: 10.2ms | ActiveRecord: 1.7ms)
21174
+
21175
+
21176
+ Started GET "/admin/media_elfinder?cmd=open&target=&init=1&tree=1&_=1522534740350" for 127.0.0.1 at 2018-04-01 01:19:00 +0300
21177
+ Processing by Optimacms::Admin::MediafilesController#elfinder as JSON
21178
+ Parameters: {"cmd"=>"open", "target"=>"", "init"=>"1", "tree"=>"1", "_"=>"1522534740350"}
21179
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21180
+ Completed 200 OK in 33ms (Views: 3.2ms | ActiveRecord: 0.4ms)
21181
+
21182
+
21183
+ Started GET "/admin/appdata" for 127.0.0.1 at 2018-04-01 01:19:03 +0300
21184
+ Processing by Optimacms::Admin::AppdataController#index as HTML
21185
+ Optimacms::CmsAdminUser Load (0.6ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21186
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/appdata/index.html.haml within optimacms/admin/layouts/main
21187
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/appdata/index.html.haml within optimacms/admin/layouts/main (29.9ms)
21188
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
21189
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_menu_user.html.haml (17.4ms)
21190
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (33.4ms)
21191
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (28.2ms)
21192
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (7.1ms)
21193
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (11.4ms)
21194
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (5.8ms)
21195
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (16.1ms)
21196
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml
21197
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (86.2ms)
21198
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (204.4ms)
21199
+ Completed 200 OK in 263ms (Views: 246.7ms | ActiveRecord: 0.6ms)
21200
+
21201
+
21202
+ Started GET "/admin/backup_metadata" for 127.0.0.1 at 2018-04-01 01:19:06 +0300
21203
+ Processing by Optimacms::Admin::BackupMetadataController#index as HTML
21204
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21205
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
21206
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/config/routes.rb:3)
21207
+ Started GET "/admin/backup_metadata" for 127.0.0.1 at 2018-04-01 01:21:45 +0300
21208
+  (0.3ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
21209
+  (0.2ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
21210
+ Processing by Optimacms::Admin::BackupMetadataController#index as HTML
21211
+ Optimacms::CmsAdminUser Load (0.2ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21212
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
21213
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/config/routes.rb:3)
21214
+ Started GET "/admin/backup_metadata" for 127.0.0.1 at 2018-04-01 01:22:15 +0300
21215
+  (0.3ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
21216
+  (0.4ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
21217
+ Processing by Optimacms::Admin::BackupMetadataController#index as HTML
21218
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21219
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/spec/dummy/config/routes.rb:13)
21220
+ DEPRECATION WARNING: Using a dynamic :action segment in a route is deprecated and will be removed in Rails 5.2. (called from block in <top (required)> at /data/projects/myrails/cms/site/config/routes.rb:3)
21221
+ Started GET "/admin/backup_metadata" for 127.0.0.1 at 2018-04-01 01:22:39 +0300
21222
+  (0.4ms) SET NAMES utf8, @@SESSION.sql_mode = CONCAT(CONCAT(@@sql_mode, ',STRICT_ALL_TABLES'), ',NO_AUTO_VALUE_ON_ZERO'), @@SESSION.sql_auto_is_null = 0, @@SESSION.wait_timeout = 2147483
21223
+  (0.3ms) SELECT `schema_migrations`.`version` FROM `schema_migrations` ORDER BY `schema_migrations`.`version` ASC
21224
+ Processing by Optimacms::Admin::BackupMetadataController#index as HTML
21225
+ Optimacms::CmsAdminUser Load (0.4ms) SELECT `cms_users`.* FROM `cms_users` WHERE `cms_users`.`id` = 4 ORDER BY `cms_users`.`id` ASC LIMIT 1
21226
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/backup_metadata/index.html.haml within optimacms/admin/layouts/main
21227
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/backup_metadata/_list.html.haml (12.1ms)
21228
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/backup_metadata/index.html.haml within optimacms/admin/layouts/main (6120.0ms)
21229
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml
21230
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_menu_user.html.haml (16.6ms)
21231
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_header.html.haml (31.3ms)
21232
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_leftmenu.html.haml (26.3ms)
21233
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_breadcrumbs.html.haml (6.9ms)
21234
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_flash.html.haml (12.5ms)
21235
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_version.html.haml (5.7ms)
21236
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/shared/_footer.html.haml (15.2ms)
21237
+ Rendering /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml
21238
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/application.html.haml (716.7ms)
21239
+ Rendered /data/projects/myrails/cms/site/app/views/optimacms/admin/layouts/basic.html.haml (829.2ms)
21240
+ Completed 200 OK in 30287ms (Views: 6977.0ms | ActiveRecord: 1.7ms)
21241
+
21242
+
21243
+ Started GET "/assets/optimacms/admin.self-0ebdba35ec3fe128780dfc8ef8cd78df1bfe1eb96c446e5ff1e3e9d3dd9ce349.css?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21244
+ Started GET "/assets/jquery2.self-25ca496239ae8641a09627c8aace5863e7676e465fbb4ce81bc7eb78c4d15627.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21245
+ Started GET "/assets/jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21246
+ Started GET "/assets/bootstrap-autocomplete-input.min.self-a62d5c85f65f9f4101234936f747c1d06ed14c92044823ac33003100ec8cc267.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21247
+ Started GET "/assets/popper.js/dist/umd/popper.self-9fc1c859ae063822b5e05dc1b08f3792727a7551143955e569d5875e89132b36.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21248
+ Started GET "/assets/bootstrap/dist/js/bootstrap.self-c6e456b38cd9e2e02d23a831f5d5230bb40776f3edb3ef80bdbaaa06aeae961b.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21249
+ Started GET "/assets/optimacms/admin.self-79488488398f5f5aed236dd6e9f914599370d04dfe70fda61b8c83bf739b1088.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
21250
+ Started GET "/assets/bootstrap3-typeahead.min.self-2ce9c5adac4a94e8444b0754fdd5fe2b4180af0ca6503ba9b347333d62c48381.js?body=1" for 127.0.0.1 at 2018-04-01 01:23:09 +0300
@@ -1 +1 @@
1
- 28722
1
+ 2250
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optimacms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.29
4
+ version: 0.3.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Ivak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-27 00:00:00.000000000 Z
11
+ date: 2018-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -445,6 +445,7 @@ files:
445
445
  - lib/optimacms/backup_metadata/template_import.rb
446
446
  - lib/optimacms/common/common.rb
447
447
  - lib/optimacms/concerns/admin_menu/admin_menu.rb
448
+ - lib/optimacms/configuration.rb
448
449
  - lib/optimacms/devise.rb
449
450
  - lib/optimacms/engine.rb
450
451
  - lib/optimacms/fileutils/fileutils.rb
@@ -571,6 +572,7 @@ files:
571
572
  - spec/dummy/config/locales/devise.en.yml
572
573
  - spec/dummy/config/locales/en.yml
573
574
  - spec/dummy/config/locales/simple_form.en.yml
575
+ - spec/dummy/config/optimacms.yml
574
576
  - spec/dummy/config/routes.rb
575
577
  - spec/dummy/config/secrets.yml
576
578
  - spec/dummy/config/tinymce.yml
@@ -13784,6 +13786,7 @@ test_files:
13784
13786
  - spec/dummy/config/environments/test.rb
13785
13787
  - spec/dummy/config/environments/production.rb
13786
13788
  - spec/dummy/config/tinymce.yml
13789
+ - spec/dummy/config/optimacms.yml
13787
13790
  - spec/dummy/config/locales/simple_form.en.yml
13788
13791
  - spec/dummy/config/locales/devise.en.yml
13789
13792
  - spec/dummy/config/locales/en.yml