class Fluffery::Config

Public Class Methods

dom() click to toggle source
# File lib/fluffery/config.rb, line 18
def self.dom
  @dom ||= {}
end
forms() click to toggle source
# File lib/fluffery/config.rb, line 5
def self.forms
  @forms ||= {
    :error_class         => 'field_with_errors',
    :message_error_class => 'errors_for_field',
    :error_template      => %{
          <span class="<%= error_class %>">
               <%= html_tag %>
               <span class="<%= message_error_class %>"><%= [messages].flatten.join(",") %></span>
          </span>
        }
      }
end
new() { |Config| ... } click to toggle source
# File lib/fluffery/config.rb, line 22
def initialize
  yield Fluffery::Config if block_given?
end