Skip to content

Instantly share code, notes, and snippets.

@javierv
Created January 7, 2011 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save javierv/769950 to your computer and use it in GitHub Desktop.
Save javierv/769950 to your computer and use it in GitHub Desktop.
From 0478e1c25892c2862779ce646485d301b5175efe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Javier=20Mart=C3=ADn?= <elretirao@elretirao.net>
Date: Fri, 7 Jan 2011 20:05:22 +0100
Subject: [PATCH 3/3] Added alias for compatibility with previous versions.
---
lib/tabletastic/table_builder.rb | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/tabletastic/table_builder.rb b/lib/tabletastic/table_builder.rb
index ce2eeeb..eaf6254 100644
--- a/lib/tabletastic/table_builder.rb
+++ b/lib/tabletastic/table_builder.rb
@@ -111,6 +111,8 @@ module Tabletastic
self.cell(action, :heading => "", :cell_html => {:class => html_class}, &block)
end
+ alias :action_link :action_cell
+
protected
def orm_fields
--
1.7.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment