Class: RailsImager::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_pathsObject (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