Skip to content

Instantly share code, notes, and snippets.

@chaadow
Created June 27, 2014 20:44
Show Gist options
  • Save chaadow/aff03d40462e3140d3ac to your computer and use it in GitHub Desktop.
Save chaadow/aff03d40462e3140d3ac to your computer and use it in GitHub Desktop.
concern :sociable do |options|
resources :comments, options
resources :categories, options
resources :tags, options
end
resources :items do
concern :sociable, only: :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment