Skip to content

Instantly share code, notes, and snippets.

@mrgilman
Last active August 29, 2015 14:01
Show Gist options
  • Select an option

  • Save mrgilman/194073995df03954c433 to your computer and use it in GitHub Desktop.

Select an option

Save mrgilman/194073995df03954c433 to your computer and use it in GitHub Desktop.
ActiveSupport::Concern is a feature of Rails that people hold strong
opinions about. In this talk we'll learn what ActiveSupport::Concern gives us
when included in Rails models and controllers. We'll look at some example code
and discuss the best way to use concerns and test them with RSpec. We'll also
talk about some of the drawbacks and why some developers choose to stay away,
and explore some possible alternatives.
@mike-burns
Copy link

what ActiveSupport::Concern gives us when included in Rails models and controllers

A little awkward. Here's a potential re-write:

how to use ActiveSupport::Concern in Rails model and controller code

(though it might not express the same point.)

Drop the word "possible" in the last sentence; it doesn't carry its weight.

Do you have a title for this?

@mrgilman
Copy link
Author

No title yet, suggestions welcome!

@calebhearth
Copy link

ActiveSupport::Concern is a feature of Rails that people hold strong opinions about.

What opinions? I want the rest of the proposal to follow up on that, but it doesn't really. I think this sentence can go.

We'll, discuss, talk about is this interactive?

Titles:

  • Concerning concerns
  • I'm concerned about your Rails code.
  • This concerns you.

I want to know more about how this talk will help me. Will you tell me when to use concerns? Will you tell me that concerns are all awful? Will you show me features implemented using concerns and without?

Can we also talk about what the difference is between a concern and a mixin/module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment