alias - Rails 4 - alias_method in Concern -



alias - Rails 4 - alias_method in Concern -

i'm trying add together alias_method :zzz_delete, :delete concern doesn't work. have tried wrap in included do, singleton_class.class_eval do, class << self , various combination of of blocks.

what missing?

it's alias_attribute not alias_method. , utilize alias_attribute :zzz_delete, :delete in model , utilize in controller.

alias_attribute used assign new name field.

ruby-on-rails alias activesupport-concern

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -