If I have user object and user has one basicinfo. In user show action I have:
def show
@user = User.find params[:id]
authorize @user
end
And in show.html.erb I must show user's basicinfo, such as:
User name is: <%= @user.basicinfo.name %>
In this case should I also authorize basicinfo in user show action?
def show
@user = User.find params[:id]
authorize @user
authorize @user.basicinfo, :show?
end