Sha256: 44a0abdd4549fea6bf483ef0d2316e1ae8bb702deaf36f0cd111200fc3ff00f4
Contents?: true
Size: 1.19 KB
Versions: 11
Compression:
Stored size: 1.19 KB
Contents
module Valle module AbstractAdapter class AbstractColumn ## # Adds more functionality to the standard ActiveRecord::ConnectionAdapters::Column # # @param [ActiveRecord::ConnectionAdapters::Column] original_column the original column # # @example # c = AbstractAdapter::AbstractColumn.new(original_column) # # c.minimum # => -128 # c.maximum # => 127 # def initialize(original_column) @original_column = original_column end def method_missing(method_name, *arguments, &block) # :nodoc: @original_column.send(method_name, *arguments, &block) end def respond_to_method_missing?(method_name, include_private = false) # :nodoc: @original_column.respond_to?(method_name, include_private) end ## # Get maximum possible value/length for this column # def maximum raise NotImplementedError.new("You must implement maximum method.") end ## # Get minimum value/length for this column # def minimum raise NotImplementedError.new("You must implement minimum method.") end end end end
Version data entries
11 entries across 11 versions & 1 rubygems