Class: Koi::Config
- Inherits:
-
Object
- Object
- Koi::Config
- Defined in:
- lib/koi/config.rb
Instance Attribute Summary collapse
-
#admin_javascript_entry_point ⇒ Object
Returns the value of attribute admin_javascript_entry_point.
-
#admin_name ⇒ Object
Returns the value of attribute admin_name.
-
#admin_stylesheet ⇒ Object
Returns the value of attribute admin_stylesheet.
-
#authenticate_local_admins ⇒ Object
Returns the value of attribute authenticate_local_admins.
-
#document_mime_types ⇒ Object
Returns the value of attribute document_mime_types.
-
#document_size_limit ⇒ Object
Returns the value of attribute document_size_limit.
-
#image_mime_types ⇒ Object
Returns the value of attribute image_mime_types.
-
#image_size_limit ⇒ Object
Returns the value of attribute image_size_limit.
-
#resource_name_candidates ⇒ Object
Returns the value of attribute resource_name_candidates.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/koi/config.rb', line 17 def initialize @admin_name = "Koi" @authenticate_local_admins = Rails.env.development? @resource_name_candidates = i[title name] @admin_stylesheet = "admin" @admin_javascript_entry_point = "@katalyst/koi" @document_mime_types = %w[image/png image/gif image/jpeg image/webp application/pdf audio/*].freeze @document_size_limit = 10.megabytes @image_mime_types = %w[image/png image/gif image/jpeg image/webp].freeze @image_size_limit = 10.megabytes end |
Instance Attribute Details
#admin_javascript_entry_point ⇒ Object
Returns the value of attribute admin_javascript_entry_point.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def admin_javascript_entry_point @admin_javascript_entry_point end |
#admin_name ⇒ Object
Returns the value of attribute admin_name.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def admin_name @admin_name end |
#admin_stylesheet ⇒ Object
Returns the value of attribute admin_stylesheet.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def admin_stylesheet @admin_stylesheet end |
#authenticate_local_admins ⇒ Object
Returns the value of attribute authenticate_local_admins.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def authenticate_local_admins @authenticate_local_admins end |
#document_mime_types ⇒ Object
Returns the value of attribute document_mime_types.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def document_mime_types @document_mime_types end |
#document_size_limit ⇒ Object
Returns the value of attribute document_size_limit.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def document_size_limit @document_size_limit end |
#image_mime_types ⇒ Object
Returns the value of attribute image_mime_types.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def image_mime_types @image_mime_types end |
#image_size_limit ⇒ Object
Returns the value of attribute image_size_limit.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def image_size_limit @image_size_limit end |
#resource_name_candidates ⇒ Object
Returns the value of attribute resource_name_candidates.
7 8 9 |
# File 'lib/koi/config.rb', line 7 def resource_name_candidates @resource_name_candidates end |