lib/phlexi/table/html.rb in phlexi-table-0.0.2 vs lib/phlexi/table/html.rb in phlexi-table-0.0.3
- old
+ new
@@ -1,13 +1,15 @@
-require "phlex"
-
module Phlexi
module Table
class HTML < (defined?(::ApplicationComponent) ? ::ApplicationComponent : Phlex::HTML)
- protected
+ module Behaviour
+ protected
- def themed(component)
- Phlexi::Table::Theme.instance.resolve_theme(component)
+ def themed(component)
+ Phlexi::Table::Theme.instance.resolve_theme(component)
+ end
end
+
+ include Behaviour
end
end
end