Skip to content

Commit

Permalink
nevermin,d I forgot how ipairs works
Browse files Browse the repository at this point in the history
  • Loading branch information
TangentFoxy committed Jan 10, 2018
1 parent d515111 commit 584dc60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions applications/posts.moon
Expand Up @@ -23,7 +23,7 @@ class PostsApp extends lapis.Application
@title = "Sitewide Posts & Pages"
@previous_label = "Most recent"
@next_label = "Oldest"
@page_arguments = {}
-- @page_arguments = {}
return render: "posts.index"

[view: "/:slug"]: =>
Expand All @@ -47,7 +47,7 @@ class PostsApp extends lapis.Application
return redirect_to: @url_for "posts_admin_index", page: @last_page

@title = "Admin Posts Index"
@page_arguments = {}
-- @page_arguments = {}
return render: "posts.admin_index"

[new: "/new"]: respond_to {
Expand Down
3 changes: 2 additions & 1 deletion utility/table.moon
Expand Up @@ -10,7 +10,8 @@ invert = (tab) ->
shallow_copy = (...) ->
tabs = {...}
new = {}
for _, tab in ipairs tabs
for n = 1, select('#', ...)
tab = select n, ...
if "table" == type tab
for k,v in pairs tab
new[k] = v
Expand Down

0 comments on commit 584dc60

Please sign in to comment.