lib/table_cloth.rb in table_cloth-0.1.2 vs lib/table_cloth.rb in table_cloth-0.2.0
- old
+ new
@@ -6,10 +6,11 @@
module TableCloth
autoload :Configuration, 'table_cloth/configuration'
autoload :Builder, 'table_cloth/builder'
autoload :Column, 'table_cloth/column'
autoload :Action, 'table_cloth/action'
+ autoload :Actions, 'table_cloth/actions'
autoload :Presenter, 'table_cloth/presenter'
autoload :ActionViewExtension, 'table_cloth/action_view_extension'
module Presenters
autoload :Default, 'table_cloth/presenters/default'
@@ -17,13 +18,13 @@
module Columns
autoload :Action, 'table_cloth/columns/action'
end
- extend self
- def self.config_for(type)
+ def config_for(type)
Configuration.config_for(type)
end
+ module_function :config_for
end
TableCloth::Base.presenter ::TableCloth::Presenters::Default
ActionView::Base.send(:include, TableCloth::ActionViewExtension)
\ No newline at end of file