Sha256: f308dc036a51f3cb9c12a3d67314bc3a1c2e7dc7f8287853576a0609981237ff

Contents?: true

Size: 580 Bytes

Versions: 4

Compression:

Stored size: 580 Bytes

Contents

require "virtus"
require "active_model"

module FunkyForm
  # Extends class with FunkyForm methods
  #
  # @param [Class] descendant
  def self.included(descendant)
    super
    descendant.send(:include, Virtus)
    descendant.send(:include, ActiveModel::Validations)
    descendant.send(:include, ActiveModel::Conversion)
    descendant.send(:include, InstanceMethods)
    descendant.extend(ClassMethods)
  end
  private_class_method :included
end

require_relative "funky_form/version"
require_relative "funky_form/class_methods"
require_relative "funky_form/instance_methods"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
funky_form-0.1.3 lib/funky_form.rb
funky_form-0.1.2 lib/funky_form.rb
funky_form-0.1.1 lib/funky_form.rb
funky_form-0.1.0 lib/funky_form.rb