[Bps-public-commit] jifty-plugin-authentication-twitter branch, master, updated. e690a32a264d279005d0e847fd8371c617f6b311

Shawn Moore sartak at bestpractical.com
Tue Jun 8 12:37:40 EDT 2010


The branch, master has been updated
       via  e690a32a264d279005d0e847fd8371c617f6b311 (commit)
      from  a9d67aa530ad04ca17ad1f48d1596189360f72d1 (commit)

Summary of changes:
 .../Authentication/Twitter/Model/TwitterAccount.pm |   65 +++++++++----------
 1 files changed, 31 insertions(+), 34 deletions(-)

- Log -----------------------------------------------------------------
commit e690a32a264d279005d0e847fd8371c617f6b311
Author: Shawn M Moore <sartak at bestpractical.com>
Date:   Tue Jun 8 12:38:34 2010 -0400

    tidy

diff --git a/lib/Jifty/Plugin/Authentication/Twitter/Model/TwitterAccount.pm b/lib/Jifty/Plugin/Authentication/Twitter/Model/TwitterAccount.pm
index 0dbf9b8..e78544e 100644
--- a/lib/Jifty/Plugin/Authentication/Twitter/Model/TwitterAccount.pm
+++ b/lib/Jifty/Plugin/Authentication/Twitter/Model/TwitterAccount.pm
@@ -15,39 +15,36 @@ package Jifty::Plugin::Authentication::Twitter::Model::TwitterAccount;
 use Jifty::DBI::Schema;
 
 use Jifty::Record schema {
-
-column user_id =>
-  is mandatory,
-  label is 'User',
-  is protected;
-
-column twitter_id =>
-  is mandatory,
-  is protected;
-
-column screen_name =>
-  label is 'Twitter name',
-  default is '',
-  type is 'varchar';
-
-column access_token =>
-  type is 'varchar';
-  label is 'OAuth access token',
-  is protected;
-
-column access_secret =>
-  type is 'varchar';
-  label is 'OAuth access token secret',
-  is protected;
-
-column created_on =>
-  type is 'date',
-  filters are 'Jifty::DBI::Filter::Date',
-  label is 'Created on',
-  since '0.2.69',
-  default is defer { DateTime->now },
-  is protected;
-
+    column user_id =>
+        is mandatory,
+        label is 'User',
+        is protected;
+
+    column twitter_id =>
+        is mandatory,
+        is protected;
+
+    column screen_name =>
+        label is 'Twitter name',
+        default is '',
+        type is 'varchar';
+
+    column access_token =>
+        type is 'varchar';
+        label is 'OAuth access token',
+        is protected;
+
+    column access_secret =>
+        type is 'varchar';
+        label is 'OAuth access token secret',
+        is protected;
+
+    column created_on =>
+        type is 'date',
+        filters are 'Jifty::DBI::Filter::Date',
+        label is 'Created on',
+        default is defer { DateTime->now },
+        is protected;
 };
 
 =head2 current_user_can
@@ -65,6 +62,6 @@ sub current_user_can {
 
     return $self->current_user->is_superuser;
 }
-1;
 
+1;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list