Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. scope.match(/.*/).to(:controller => "feather/articles", :action => "show").defer_to do |request, params|
  2. unless (article = Feather::Article.find_by_permalink(request.uri.to_s.chomp("/"))).nil?
  3. params.merge(:id => article.id)
  4. end
  5. end
Add Comment
Please, Sign In to add comment