Sha256: ecc6a449fa52cfdb4d05abfc371009a5a7feb3d04bdc218cbb16b8421ae75267
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
module NotificationSettings module NotificationScopes def method_missing m, *args if m.to_s[/(.+)_category/] where category: $1.singularize.classify else super end end def respond_to? m, include_private = false super || m.to_s[/(.+)_category/] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
notification-settings-1.0.0.beta8 | lib/notification_settings/notification_scopes.rb |
notification-settings-1.0.0.beta7 | lib/notification_settings/notification_scopes.rb |