Sha256: 02f62703b2adcadc05c59e89d4ad617f30fe3df5f47398fec8fb4c5457c85c0e
Contents?: true
Size: 738 Bytes
Versions: 15
Compression:
Stored size: 738 Bytes
Contents
# frozen_string_literal: true class BaseClass # Do NOT use a controller inherited base class to add concerns! # If you do that, you'd be sharing state (i.e. overriding/adding) from concerns across controllers # which will probably lead to sharing issues you didn't expect. # For example: any controller adding after/before/around filters will be visible # to any other controllers sharing the concern. # Include a concern to all of them instead # Inheritance of classes should be independent from the concerns. # I.e., you can use class inheritance in cases where it makes sense from an OO point of view # but for the most part, you can probably share code through modules/concerns too. def this_is_shared; end end
Version data entries
15 entries across 15 versions & 1 rubygems