Displaying 1 result from an estimated 1 matches for "__dteblk".
2008 Mar 26
2
Missing Method defined in controllers/application.rb
I have this in my controllers/application.rb:
class ApplicationController < ActionController::Base
...
def datebalk!
# set regexp for datebalks generated attributes
c = /.*__dteblk/
# Remove datebalks generated attributes from params hash
delete_if { |k, v| c =~ k.to_s }
end
...
end
When I call this from client_controllers.rb in this fashion:
# need this to strip out observer attributes for datebalks plugin
@client = @entity.build_client(params[:client].d...