Created
February 9, 2012 02:24
-
-
Save JamesHarrison/1776579 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
# Load a scope from a parameter | |
@list_scope = Image.get_scope(params[:scope]) if params[:scope] | |
if @list_scope and @list_scope[:options] and @list_scope[:selector] | |
@images = Image.all | |
@images.selector = @list_scope[:selector] | |
@images.options = @list_scope[:options] | |
end | |
# You get the idea. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment