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:
commit
00b09dfbdd
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue