Class: RailsImager::Config
- Inherits:
-
Object
- Object
- RailsImager::Config
- Defined in:
- lib/rails_imager/config.rb
Instance Attribute Summary collapse
-
#allowed_paths ⇒ Object
readonly
Returns the value of attribute allowed_paths.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
4 5 6 7 |
# File 'lib/rails_imager/config.rb', line 4 def initialize @allowed_paths = [] @allowed_paths << Rails.public_path.to_s if Rails.public_path.to_s.present? end |
Instance Attribute Details
#allowed_paths ⇒ Object (readonly)
Returns the value of attribute allowed_paths.
2 3 4 |
# File 'lib/rails_imager/config.rb', line 2 def allowed_paths @allowed_paths end |