Class: ActiveAdmin::Editor::Configuration
- Inherits:
-
Object
- Object
- ActiveAdmin::Editor::Configuration
- Defined in:
- lib/active_admin/editor/config.rb
Instance Attribute Summary collapse
-
#aws_access_key_id ⇒ Object
AWS credentials.
-
#aws_access_secret ⇒ Object
Returns the value of attribute aws_access_secret.
-
#s3_bucket ⇒ Object
The s3 bucket to store uploads.
-
#storage_dir ⇒ Object
Base directory to store the uploaded files in the bucket.
-
#stylesheets ⇒ Object
wysiwyg stylesheets that get included in the backend and the frontend.
Instance Method Summary collapse
Instance Attribute Details
#aws_access_key_id ⇒ Object
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_secret ⇒ Object
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_bucket ⇒ Object
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_dir ⇒ Object
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 |
#stylesheets ⇒ Object
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_rules ⇒ Object
50 51 52 |
# File 'lib/active_admin/editor/config.rb', line 50 def parser_rules @parser_rules ||= PARSER_RULES.dup end |
#s3_configured? ⇒ 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 |