Skip to content

Commit

Permalink
removed index and joinIndex from ActiveRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
hiqsol committed Jan 27, 2017
1 parent 5f11ea8 commit 46bb95f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,20 +119,6 @@ public function attributes()
return array_values($attributes);
}

/**
* @return string the name of the index this record is stored in
*/
public static function index()
{
// return Inflector::pluralize(Inflector::camel2id(StringHelper::basename(get_called_class()), '-'));
return mb_strtolower(StringHelper::basename(get_called_class()) . 's');
}

public static function joinIndex()
{
return static::index();
}

/**
* Creates an active record instance.
*
Expand Down

0 comments on commit 46bb95f

Please sign in to comment.