Guest User

Untitled

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