1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

no need for creating a new object to get instance methods

This commit is contained in:
Vasiliy Ermolovich 2012-03-18 21:16:42 +03:00
parent 7ccf0a6f2c
commit 97484dce39

View file

@ -4,7 +4,7 @@ module Draper
class_attribute :denied, :allowed, :model_class class_attribute :denied, :allowed, :model_class
attr_accessor :model, :options attr_accessor :model, :options
DEFAULT_DENIED = Object.new.methods << :method_missing DEFAULT_DENIED = Object.instance_methods << :method_missing
DEFAULT_ALLOWED = [] DEFAULT_ALLOWED = []
FORCED_PROXY = [:to_param, :id] FORCED_PROXY = [:to_param, :id]
FORCED_PROXY.each do |method| FORCED_PROXY.each do |method|