ActiveSupportConcern

HomePage | RecentChanges | Preferences

Difference (from prior author revision) (major diff, minor diff)

Changed: 1,11c1

ActiveSupport Concern




http://stackoverflow.com/questions/3461704/ruby-on-rails-shared-method-between-models

http://api.rubyonrails.org/classes/ActiveSupport/Concern.html

Allows sharing code among modules, but the code needs to be generic.

For example, don't put `helper_method` in the concern if it's meant to be shared between controllers and models. `helper_method` only works in controllers.





HomePage | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited December 22, 2019 5:41 am by 78-93-98-198.dsl.wavetel.us (diff)
Search: