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

Merge pull request #153 from nashby/instance-methods

no need for creating a new object to get instance methods
This commit is contained in:
Steve Klabnik 2012-03-18 12:51:50 -07:00
commit 00b09dfbdd

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|