Created
September 29, 2015 17:45
-
-
Save dmitryrck/e0e586ddaa6cdd8c575b to your computer and use it in GitHub Desktop.
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
class ApplicationController < ActionController::Base | |
protect_from_forgery :with => :exception | |
helper_method :categories_ordered | |
def categories_odered | |
Category.order(:name) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment