fullstack-admin 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.16
1
+ 0.1.17
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-admin"
8
- s.version = "0.1.16"
8
+ s.version = "0.1.17"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -981,7 +981,6 @@ Gem::Specification.new do |s|
981
981
  "app/views/admin/base/new.html.erb",
982
982
  "app/views/admin/base/update.js.coffee",
983
983
  "app/views/layouts/admin.html.erb",
984
- "config/initializers/ckeditor.rb",
985
984
  "config/routes.rb",
986
985
  "fullstack-admin.gemspec",
987
986
  "lib/fullstack-admin.rb",
@@ -4,9 +4,23 @@ require "ckeditor"
4
4
  module Fullstack
5
5
  module Admin
6
6
  class Engine < ::Rails::Engine
7
+
7
8
  initializer "fullstack-admin precompile" do |app|
8
9
  app.config.assets.precompile += Ckeditor.assets
9
10
  end
11
+
12
+ initializer 'fullstack.autoload', :after => :set_autoload_paths do |app|
13
+ Ckeditor.setup do |config|
14
+ require "ckeditor/orm/active_record"
15
+ end
16
+
17
+ Ckeditor::ApplicationController.class_eval do
18
+ authorize(:scope => :admin)
19
+ end
20
+ end
21
+
10
22
  end
11
23
  end
12
- end
24
+ end
25
+
26
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.16
4
+ version: 0.1.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -1207,7 +1207,6 @@ files:
1207
1207
  - app/views/admin/base/new.html.erb
1208
1208
  - app/views/admin/base/update.js.coffee
1209
1209
  - app/views/layouts/admin.html.erb
1210
- - config/initializers/ckeditor.rb
1211
1210
  - config/routes.rb
1212
1211
  - fullstack-admin.gemspec
1213
1212
  - lib/fullstack-admin.rb
@@ -1262,7 +1261,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
1262
1261
  version: '0'
1263
1262
  segments:
1264
1263
  - 0
1265
- hash: 2167604750692856345
1264
+ hash: 2814705488529212827
1266
1265
  required_rubygems_version: !ruby/object:Gem::Requirement
1267
1266
  none: false
1268
1267
  requirements:
@@ -1,9 +0,0 @@
1
- if Object.const_defined?("Ckeditor")
2
- Ckeditor.setup do |config|
3
- require "ckeditor/orm/active_record"
4
- end
5
-
6
- Ckeditor::ApplicationController.class_eval do
7
- authorize(:scope => :admin)
8
- end
9
- end