module Activeadmin::Redactor::ControllerActions

Public Instance Methods

redactorable(options={}) click to toggle source
# File lib/activeadmin/redactor.rb, line 10
def redactorable(options={})
  member_action :redactor do
    @viewport_opts = ViewportOpts.new(options)
    @redactor_opts = RedactorOpts.new(options[:redactor])
    render @viewport_opts.template, layout: @viewport_opts.layout
  end
end