Sha256: d477e9fbdf7e348095bf7e1a466800d1678d23534d19805b7b5e7564bb17b347

Contents?: true

Size: 766 Bytes

Versions: 1

Compression:

Stored size: 766 Bytes

Contents

load File.dirname(__FILE__) / "form" / "helpers.rb"
load File.dirname(__FILE__) / "form" / "builder.rb"

class Merb::Controller
  class_inheritable_accessor :_default_builder
  include Merb::Helpers::Form
end

class Merb::PartController
  class_inheritable_accessor :_default_builder
  include Merb::Helpers::Form
end

Merb::BootLoader.after_app_loads do
  class Merb::Controller
    self._default_builder =
      Object.full_const_get(Merb::Plugins.config[:helpers][:default_builder]) rescue Merb::Helpers::Form::Builder::ResourcefulFormWithErrors
  end
  
  class Merb::PartController
    self._default_builder =
      Object.full_const_get(Merb::Plugins.config[:helpers][:default_builder]) rescue Merb::Helpers::Form::Builder::ResourcefulFormWithErrors
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
merb_helpers-0.9.7 lib/merb_helpers/form_helpers.rb