Sha256: 01d73845fd88513ec423abb093ea8a0fb232bb5995893d69edacc6b613834866

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

module Fluffery
  
  class Config
    
    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
    
    def self.dom
      @dom ||= {}
    end
    
    def initialize
      yield Fluffery::Config if block_given?
    end
    
    
  end
  
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fluffery-0.0.3 lib/fluffery/config.rb
fluffery-0.0.2 lib/fluffery/config.rb
fluffery-0.0.1 lib/fluffery/config.rb