Skip to content

Commit

Permalink
Version bump 1.0.8 and use parameterize instead of underscore.
Browse files Browse the repository at this point in the history
  • Loading branch information
potatosalad committed Jul 1, 2011
1 parent 1e00e88 commit ffb4a8b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 28 deletions.
54 changes: 28 additions & 26 deletions Gemfile.lock
@@ -1,40 +1,40 @@
PATH
remote: .
specs:
mongoid-data_table (1.0.7)
mongoid-data_table (1.0.8)
kaminari (~> 0.12.4)
rails (>= 3.0.0)

GEM
remote: http://rubygems.org/
specs:
abstract (1.0.0)
actionmailer (3.0.8)
actionpack (= 3.0.8)
actionmailer (3.0.9)
actionpack (= 3.0.9)
mail (~> 2.2.19)
actionpack (3.0.8)
activemodel (= 3.0.8)
activesupport (= 3.0.8)
actionpack (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
builder (~> 2.1.2)
erubis (~> 2.6.6)
i18n (~> 0.5.0)
rack (~> 1.2.1)
rack-mount (~> 0.6.14)
rack-test (~> 0.5.7)
tzinfo (~> 0.3.23)
activemodel (3.0.8)
activesupport (= 3.0.8)
activemodel (3.0.9)
activesupport (= 3.0.9)
builder (~> 2.1.2)
i18n (~> 0.5.0)
activerecord (3.0.8)
activemodel (= 3.0.8)
activesupport (= 3.0.8)
activerecord (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
arel (~> 2.0.10)
tzinfo (~> 0.3.23)
activeresource (3.0.8)
activemodel (= 3.0.8)
activesupport (= 3.0.8)
activesupport (3.0.8)
activeresource (3.0.9)
activemodel (= 3.0.9)
activesupport (= 3.0.9)
activesupport (3.0.9)
arel (2.0.10)
bson (1.3.1)
bson_ext (1.3.1)
Expand Down Expand Up @@ -64,20 +64,22 @@ GEM
rack (>= 1.0.0)
rack-test (0.5.7)
rack (>= 1.0)
rails (3.0.8)
actionmailer (= 3.0.8)
actionpack (= 3.0.8)
activerecord (= 3.0.8)
activeresource (= 3.0.8)
activesupport (= 3.0.8)
rails (3.0.9)
actionmailer (= 3.0.9)
actionpack (= 3.0.9)
activerecord (= 3.0.9)
activeresource (= 3.0.9)
activesupport (= 3.0.9)
bundler (~> 1.0)
railties (= 3.0.8)
railties (3.0.8)
actionpack (= 3.0.8)
activesupport (= 3.0.8)
railties (= 3.0.9)
railties (3.0.9)
actionpack (= 3.0.9)
activesupport (= 3.0.9)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.4)
rake (0.9.2)
rdoc (3.8)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
Expand All @@ -90,7 +92,7 @@ GEM
thor (0.14.6)
treetop (1.4.9)
polyglot (>= 0.3.1)
tzinfo (0.3.27)
tzinfo (0.3.29)
watchr (0.7)

PLATFORMS
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/data_table/proxy.rb
Expand Up @@ -124,7 +124,7 @@ def render_data_table_block(klass, item, object, result = [])
self.instance_eval(&data_table.send(:render_data_table_block, klass, value, object, ''))
end))
else
result << render_to_string(:inline => item.to_s, :locals => data_table.locals.reverse_merge(:"#{klass.name.underscore}" => object, :object => object))
result << render_to_string(:inline => item.to_s, :locals => data_table.locals.reverse_merge(:"#{klass.name.parameterize('_')}" => object, :object => object))
end
result
end
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/data_table/version.rb
@@ -1,5 +1,5 @@
module Mongoid
module DataTable
VERSION = "1.0.7"
VERSION = "1.0.8"
end
end

0 comments on commit ffb4a8b

Please sign in to comment.