Class: ActiveAdmin::Editor::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_admin/editor/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aws_access_key_idObject

AWS credentials



19
20
21
# File 'lib/active_admin/editor/config.rb', line 19

def aws_access_key_id
  @aws_access_key_id
end

#aws_access_secretObject

Returns the value of attribute aws_access_secret.



20
21
22
# File 'lib/active_admin/editor/config.rb', line 20

def aws_access_secret
  @aws_access_secret
end

#s3_bucketObject

The s3 bucket to store uploads.



23
24
25
# File 'lib/active_admin/editor/config.rb', line 23

def s3_bucket
  @s3_bucket
end

#storage_dirObject

Base directory to store the uploaded files in the bucket. Defaults to ‘uploads’.



27
28
29
# File 'lib/active_admin/editor/config.rb', line 27

def storage_dir
  @storage_dir
end

#stylesheetsObject

wysiwyg stylesheets that get included in the backend and the frontend.



30
31
32
# File 'lib/active_admin/editor/config.rb', line 30

def stylesheets
  @stylesheets
end

Instance Method Details

#parser_rulesObject



50
51
52
# File 'lib/active_admin/editor/config.rb', line 50

def parser_rules
  @parser_rules ||= PARSER_RULES.dup
end

#s3_configured?Boolean

Returns:

  • (Boolean)


44
45
46
47
48
# File 'lib/active_admin/editor/config.rb', line 44

def s3_configured?
  aws_access_key_id.present? &&
    aws_access_secret.present? &&
    s3_bucket.present?
end