frozen? is defined by ActiveRecord
ActiveRecord::DangerousAttributeError
frozen? is defined by ActiveRecord
My code is here:
class Customer < ActiveRecord::Base
establish_connection :my_connection
self.table_name = 'customer'
self.primary_key = 'customer_no'
def self.get_all_customer
@
customer_data
= Customer.find_by_sql("select customer_no from customer_table")
return @customer_data
end
end
Thanks
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLth%2Bhye3H%2BHJn88XvDFE8ReOsTnc3uq0qRFYLsq9XXoEw%40mail.gmail.com.