Class: Fluffery::Config
- Inherits:
-
Object
- Object
- Fluffery::Config
- Defined in:
- lib/fluffery/config.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize {|Fluffery::Config| ... } ⇒ Config
constructor
A new instance of Config.
Constructor Details
Class Method Details
.dom ⇒ Object
18 19 20 |
# File 'lib/fluffery/config.rb', line 18 def self.dom @dom ||= {} end |
.forms ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# 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 |