Sha256: 860d938cc06060c3cb35b77fbcc649da4c1cf5f97705eb3f535e017ca979dcb0
Contents?: true
Size: 262 Bytes
Versions: 1
Compression:
Stored size: 262 Bytes
Contents
class Symbol def method_missing(method, *args) super and return if method.to_s =~ /table_name/ (self.to_s + ".#{method}(#{args.collect(&:inspect).join(",")})").to_sym end def missing_methods self.to_s.gsub(/(\(.*\))/,"").split(".") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
padrino-admin-0.4.5 | lib/padrino-admin/support.rb |