Class: Paperclip::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-paperclip.rb

Constant Summary collapse

DEFAULT_PROCESSORS_PATH =
'lib/paperclip_processors'

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#envObject



97
98
99
# File 'lib/dm-paperclip.rb', line 97

def env
  @env ||= (ENV['RACK_ENV'] || 'development')
end

#rootObject



93
94
95
# File 'lib/dm-paperclip.rb', line 93

def root
  @root ||= Dir.pwd
end

#use_dm_validationsObject

Returns the value of attribute use_dm_validations.



91
92
93
# File 'lib/dm-paperclip.rb', line 91

def use_dm_validations
  @use_dm_validations
end

Instance Method Details

#processors_pathObject



105
106
107
# File 'lib/dm-paperclip.rb', line 105

def processors_path
  @processors_path ||= File.expand_path("../#{DEFAULT_PROCESSORS_PATH}", root)
end

#processors_path=(path) ⇒ Object



101
102
103
# File 'lib/dm-paperclip.rb', line 101

def processors_path=(path)
  @processors_path = File.expand_path(path, root)
end