Module: Riparian

Defined in:
lib/riparian.rb

Defined Under Namespace

Classes: Railtie

Constant Summary collapse

DEFAULT_CONFIG =
{
  :flow_task_resource_file_path => ":rails_root/public/system/:class/:id/:filename",
  :flow_task_resource_file_url => "/system/:class/:id/:filename",
  :flow_task_resource_file_size_greater_than => 1, # 1 byte
  :flow_task_resource_file_size_less_than => 10485760 # 10 megabytes
}

Class Method Summary collapse

Class Method Details

.configObject



13
14
15
# File 'lib/riparian.rb', line 13

def self.config
  @config ||= OpenStruct.new(DEFAULT_CONFIG)
end

.config=(new_config) ⇒ Object



17
18
19
# File 'lib/riparian.rb', line 17

def self.config=(new_config)
  @config = new_config
end