Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. def acts_as_list(options = {})
  2. configuration = { column: "position", scope: "1 = 1", top_of_list: 1, add_new_at: :bottom}
  3. configuration.update(options) if options.is_a?(Hash)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement