class Refinery::RedactorGenerator

Public Instance Methods

create_config() click to toggle source
# File lib/generators/refinery/redactor/redactor_generator.rb, line 25
def create_config
  template "config.js", File.join(destination_root, 'app', 'assets', 'javascripts', 'refinery-redactor', 'config.js')
end
create_redactor_stubs() click to toggle source
# File lib/generators/refinery/redactor/redactor_generator.rb, line 7
def create_redactor_stubs
  say_status "Warning", "
    Due to licensing, refinery-redactor does not come
    with Redactor packaged. You need to purchase a license
    and download Redactor yourself. There are just two files
    you need: redactor.js and redactor.css. We have generated
    placeholder files for you in
    app/assets/javascripts/refinery-redactor
    and app/assets/stylesheets/refinery-redactor
    that currently alert you to Redactor not being present -
    simply replace those files with the respective files from
    your Redactor download.
  ", :red

  template "redactor.js", File.join(destination_root, 'app', 'assets', 'javascripts', 'refinery-redactor', 'redactor.js')
  template "redactor.css", File.join(destination_root, 'app', 'assets', 'stylesheets', 'refinery-redactor', 'redactor.css')
end