fesplugas-typus 0.9.12 → 0.9.13
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.
- data/VERSION +1 -1
- data/app/controllers/admin/master_controller.rb +7 -1
- data/app/views/layouts/admin.html.erb +1 -0
- data/typus.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.13
|
|
@@ -39,6 +39,8 @@ class Admin::MasterController < ApplicationController
|
|
|
39
39
|
before_filter :set_tiny_mce,
|
|
40
40
|
:only => [ :new, :edit, :create, :update ]
|
|
41
41
|
|
|
42
|
+
helper_method :tiny_mce_plugin_installed?
|
|
43
|
+
|
|
42
44
|
##
|
|
43
45
|
# This is the main index of the model. With filters, conditions
|
|
44
46
|
# and more.
|
|
@@ -293,7 +295,7 @@ private
|
|
|
293
295
|
end
|
|
294
296
|
|
|
295
297
|
def set_tiny_mce
|
|
296
|
-
|
|
298
|
+
if !@resource[:class].typus_tiny_mce_fields.empty? && tiny_mce_plugin_installed?
|
|
297
299
|
options = @resource[:class].typus_tiny_mce_options
|
|
298
300
|
self.class.class_eval { uses_tiny_mce :options => options }
|
|
299
301
|
end
|
|
@@ -349,4 +351,8 @@ private
|
|
|
349
351
|
redirect_to path
|
|
350
352
|
end
|
|
351
353
|
|
|
354
|
+
def tiny_mce_plugin_installed?
|
|
355
|
+
defined?(TinyMCE)
|
|
356
|
+
end
|
|
357
|
+
|
|
352
358
|
end
|
data/typus.gemspec
CHANGED