Sha256: ea0682ffa103ca2a52738e8c2aab2bcc68dc55ccb9be839d0a3eb49528cd50b4

Contents?: true

Size: 536 Bytes

Versions: 3

Compression:

Stored size: 536 Bytes

Contents

require_relative 'options'

module Activeadmin
  module Redactor
    class RedactorOpts < Options
      def iframe
        opts[:iframe] === true
      end

      def fullpage
        opts[:fullpage] === true
      end

      def focus
        opts[:focus] === true
      end

      def css
        opts[:css] || []
      end

      def minheight
        opts[:minheight] || false
      end

      def imageupload
        opts[:imageupload] || false
      end

      def plugins
        opts[:plugins] || []
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-redactor-0.2.1 lib/activeadmin/redactor_opts.rb
activeadmin-redactor-0.2.0 lib/activeadmin/redactor_opts.rb
activeadmin-redactor-0.1.4 lib/activeadmin/redactor_opts.rb