Hello,
I need to disable access control in my migration, because I enforced model security with "using_access_control" option in my models.
So I managed to put my migration block into a "without_access_control" method block :
class AddDateToProjMesure < ActiveRecord::Migration def change add_column :proj_mesures, :date_reference, :date Authorization::Maintenance::without_access_control do
ProjMesure.all.each do |proj_mesure| proj_mesure.update_attributes! :date_reference => Time.zone.today end # ProjMesure.all.each
end # Authorization::Maintenance::without_access_control end endHowever,
I still got the following error :
uninitialized constant Authorization::Maintenance/var/www-opf/opf/db/migrate/20130607103809_add_date_to_proj_mesure.rb:41:in `change'
How can I have access to this public method without_access_control
?
Thanks for any help
--
You received this message because you are subscribed to the Google Groups "declarative_authorization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to declarative_author...@googlegroups.com.
To post to this group, send email to declarative_...@googlegroups.com.
Visit this group at http://groups.google.com/group/declarative_authorization?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
require "vendor/plugins/declarative_authorization/lib/maintenance"But it was not working.
--
You received this message because you are subscribed to the Google Groups "declarative_authorization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to declarative_author...@googlegroups.com.
To post to this group, send email to declarative_...@googlegroups.com.
Visit this group at http://groups.google.com/group/declarative_authorization?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "declarative_authorization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to declarative_author...@googlegroups.com.
To post to this group, send email to declarative_...@googlegroups.com.
Visit this group at http://groups.google.com/group/declarative_authorization?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.