Sha256: 42607fc661477f3f0901b095408ed9b4f3333138f5b6ad718fec2c9930c6e78f

Contents?: true

Size: 262 Bytes

Versions: 1

Compression:

Stored size: 262 Bytes

Contents

module PaperclipPrivate
	module AttachmentRegistry
		def self.registry
			@registry ||= {}
		end

		def self.register(klass, name, options)
			class_name = klass.to_s
			self.registry[class_name] ||= {}
			self.registry[class_name][name] = options
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paperclip_private-0.0.2 lib/paperclip_private/attachment_registry.rb