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