Last active
May 24, 2018 07:45
-
-
Save alexvbush/d092d45705909da60cec to your computer and use it in GitHub Desktop.
Revisions
-
alexvbush revised this gist
Jul 26, 2014 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,6 @@ def for_scope(scope, user = GuestUser.new) case scope when 'saved' user.saved_articles.scoped when 'my' user.tagged_articles.scoped -
alexvbush revised this gist
Jul 26, 2014 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,7 @@ def for_scope(scope, user = GuestUser.new) case scope when 'saved' user.saved_articles.scoped when 'my' user.tagged_articles.scoped -
alexvbush revised this gist
Jul 26, 2014 . 1 changed file with 6 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,12 @@ def for_scope(scope, user = GuestUser.new) case scope when 'saved' user.saved_articles.scoped when 'my' user.tagged_articles.scoped else scoped end end -
alexvbush renamed this gist
Jul 26, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
alexvbush revised this gist
Jul 21, 2014 . 1 changed file with 9 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -7,4 +7,13 @@ def for_scope(scope, user = GuestUser.new) else scoped end end # ????????? scoped or none or something else? class Guest def saved_articles Article.scoped end end -
alexvbush created this gist
Jul 21, 2014 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ def for_scope(scope, user = GuestUser.new) case scope when 'saved' user.saved_articles.scoped when 'my' user.tagged_articles.scoped else scoped end end