Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ilpeste committed Jul 24, 2012
1 parent fa951bc commit 93d6617
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/twitter-bootstrap-markup-rails/components/progress_bar.rb
Expand Up @@ -20,7 +20,9 @@ def default_options
{
:class => nil,
:bootstrap_class_prefix => "progress",
:type => [],
:striped => false,
:animated => false,
:type => nil,
:html_options => {}
}
end
Expand All @@ -29,7 +31,8 @@ def build_class
classes = [ options[:class] ]
classes << options[:bootstrap_class_prefix]
classes << "#{options[:bootstrap_class_prefix]}-#{options[:type]}" if options[:type]
classes << "active" if options[:active]
classes << "#{options[:bootstrap_class_prefix]}-striped" if options[:striped]
classes << "active" if options[:animated]
classes.join(" ")
end

Expand Down

0 comments on commit 93d6617

Please sign in to comment.