module ROM::Files::Plugins::Schema::Mime::DSL
@api private
Public Instance Methods
mime(name = :mime_type, inline_type = TYPE, type: inline_type)
click to toggle source
Sets non-default contents attribute
@example Set custom attribute name `#type` for MIME-type
schema do use :mime mime :type end
@api public
# File lib/rom/files/plugins/schema/mime.rb, line 47 def mime(name = :mime_type, inline_type = TYPE, type: inline_type) options = plugin_options(:mime) options[:name] = name options[:type] = type self end