Created
January 21, 2015 12:50
-
-
Save Bodacious/84bb5c808a73ed3dc7b6 to your computer and use it in GitHub Desktop.
Exposable attribute
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 OrdersController | |
def index | |
end | |
def pending | |
end | |
private | |
exposable_attribute :pending_orders { Order.pending } | |
exposable_attribute :complete_orders { Order.complete } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment