Sha256: 501c56d1abff0f87dfc33316d0f0ba912fa0ab4a04030b83fb11f02d5e412541
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
require_relative 'options' module Activeadmin module Redactor class ViewportOpts < Options DEFAULT_LAYOUT = 'redactor' DEFAULT_TEMPLATE = 'redactor/editor' DEFAULT_STYLESHEET = 'activeadmin-redactor' DEFAULT_JAVASCRIPTS = %w(jquery jquery_ujs activeadmin-redactor) def layout opts[:layout] || DEFAULT_LAYOUT end def template opts[:template] || DEFAULT_TEMPLATE end def stylesheets (opts[:stylesheets] || []).unshift(DEFAULT_STYLESHEET) end def javascripts (opts[:javascripts] || []).unshift(*DEFAULT_JAVASCRIPTS) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
activeadmin-redactor-0.2.1 | lib/activeadmin/viewport_opts.rb |
activeadmin-redactor-0.2.0 | lib/activeadmin/viewport_opts.rb |
activeadmin-redactor-0.1.4 | lib/activeadmin/viewport_opts.rb |