Sha256: 961a51807620c9f8a71a2193f39d52e6953eff602e20779fd3145957b6f52004
Contents?: true
Size: 453 Bytes
Versions: 15
Compression:
Stored size: 453 Bytes
Contents
require "active_model/railtie" module EitilWrapper class ApplicationDecorator include ActiveModel::Model def initialize(attributes={}, **kwargs) super attributes all_kwargs_to_ivars binding end def self.method_missing(method_name, *args, **kwargs) if %i$ web app $.include?(method_name.to_sym) kwargs.any? ? send(:base, *args, **kwargs) : send(:base, *args) end super end end end
Version data entries
15 entries across 15 versions & 1 rubygems