forked from publiclab/plots2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implemented tags/node_tags stats downloading (publiclab#5459)
* added routes for tags and node_tags to routes.rb * added controllers for tags and node_tags * added tags/node_tags to json/csv download dropdowns * removed extra carraige return * second attempt to remove white space from line 107 * 3rd attempt at removing white space * removed extra colon from retyping code from last commit * correct misnaming in stats_controller.rb Co-Authored-By: skilfullycurled <[email protected]> * corrected route to matching exemplars in lines above Co-Authored-By: skilfullycurled <[email protected]> * removed extra <li> tag Co-Authored-By: skilfullycurled <[email protected]> * removed additional extra <li> tag * Update app/controllers/stats_controller.rb Co-Authored-By: skilfullycurled <[email protected]> * added extend RawStats to tag model for csv download * added extend RawStats to node_tag model for csv download * updated tests for new tags/node_tag downloads
- Loading branch information
1 parent
1c73fe0
commit ee71408
Showing
6 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
class Tag < ApplicationRecord | ||
extend RawStats | ||
self.table_name = 'term_data' | ||
self.primary_key = 'tid' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters