Class: Paperclip::Configuration
- Inherits:
-
Object
- Object
- Paperclip::Configuration
- Defined in:
- lib/dm-paperclip.rb
Constant Summary collapse
- DEFAULT_PROCESSORS_PATH =
'lib/paperclip_processors'
Instance Attribute Summary collapse
- #env ⇒ Object
- #root ⇒ Object
-
#use_dm_validations ⇒ Object
Returns the value of attribute use_dm_validations.
Instance Method Summary collapse
Instance Attribute Details
#env ⇒ Object
89 90 91 |
# File 'lib/dm-paperclip.rb', line 89 def env @env ||= (ENV['RACK_ENV'] || 'development') end |
#root ⇒ Object
85 86 87 |
# File 'lib/dm-paperclip.rb', line 85 def root @root ||= Dir.pwd end |
#use_dm_validations ⇒ Object
Returns the value of attribute use_dm_validations.
83 84 85 |
# File 'lib/dm-paperclip.rb', line 83 def use_dm_validations @use_dm_validations end |
Instance Method Details
#processors_path ⇒ Object
97 98 99 |
# File 'lib/dm-paperclip.rb', line 97 def processors_path @processors_path ||= File.("../#{DEFAULT_PROCESSORS_PATH}", root) end |