Module: ShowFor
- Defined in:
- lib/show_for.rb,
lib/show_for/label.rb,
lib/show_for/helper.rb,
lib/show_for/builder.rb,
lib/show_for/content.rb,
lib/show_for/version.rb,
lib/show_for/attribute.rb,
lib/show_for/association.rb,
lib/generators/show_for/install_generator.rb
Defined Under Namespace
Modules: Association, Attribute, Content, Generators, Helper, Label Classes: Builder
Constant Summary collapse
- VERSION =
"0.6.0".freeze
- @@show_for_tag =
:div- @@show_for_class =
nil- @@label_tag =
:strong- @@label_class =
:label- @@separator =
"<br />"- @@content_tag =
nil- @@content_class =
:content- @@blank_content_class =
"blank"- @@skip_blanks =
false- @@wrapper_tag =
:div- @@wrapper_class =
:wrapper- @@collection_tag =
:ul- @@collection_class =
:collection- @@default_collection_proc =
lambda { |value| "<li>#{ERB::Util.html_escape(value)}</li>".html_safe }
- @@i18n_format =
:default- @@association_methods =
[ :name, :title, :to_s ]
- @@label_proc =
nil
Class Method Summary collapse
-
.setup {|_self| ... } ⇒ Object
Yield self for configuration block:.
Class Method Details
.setup {|_self| ... } ⇒ Object
Yield self for configuration block:
ShowFor.setup do |config|
config.i18n_format = :long
end
64 65 66 |
# File 'lib/show_for.rb', line 64 def self.setup yield self end |